[wp-trac] [WordPress Trac] #63801: Corrige tipo MIME inválido para speculationrules

WordPress Trac noreply at wordpress.org
Sat Aug 9 00:06:30 UTC 2025


#63801: Corrige tipo MIME inválido para speculationrules
--------------------------------------------+-------------------------
 Reporter:  morpheuz2006                    |       Owner:  (none)
     Type:  defect (bug)                    |      Status:  closed
 Priority:  normal                          |   Milestone:
Component:  General                         |     Version:
 Severity:  normal                          |  Resolution:  invalid
 Keywords:  has-patch has-unit-tests close  |     Focuses:  javascript
--------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * status:  new => closed
 * focuses:  javascript, css => javascript
 * resolution:   => invalid
 * version:  6.8 =>
 * milestone:  Awaiting Review =>


Comment:

 @morpheuz2006 Hello, and welcome to trac!

 @sabernhardt is correct, the script type WordPress is using
 `speculationrules` is the correct value for `script` tags per the
 [https://developer.mozilla.org/en-
 US/docs/Web/HTML/Reference/Elements/script/type/speculationrules MDN
 documentation].

 The `application/speculationrules+json` mime type is required to be used
 by JSON files referenced by the `Speculation-Rules` HTTP header, which
 isn't required for the WordPress implementation.

 I've closed this ticket as `invalid`, in this case that's Trac's
 unfriendly term to indicate there has been a misunderstanding.

 Machine translation from English to Portuguese

 ----

 @morpheuz2006 Olá e bem-vindo ao trac!

 @sabernhardt está correto. O tipo de script que o WordPress está usando,
 `speculationrules`, é o valor correto para as tags `script`, de acordo com
 a [https://developer.mozilla.org/en-
 US/docs/Web/HTML/Reference/Elements/script/type/speculationrules
 documentação do MDN].

 O tipo MIME `application/speculationrules+json` é obrigatório para
 arquivos JSON referenciados pelo cabeçalho HTTP `Speculation-Rules`, que
 não é necessário para a implementação do WordPress.

 Encerrei este ticket como `inválido`; neste caso, esse é o termo hostil do
 Trac para indicar que houve um mal-entendido.

 Tradução automática do inglês para o português

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63801#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list