[wp-trac] [WordPress Trac] #63289: Error in validator.w3 (After updating to version 6.8)

WordPress Trac noreply at wordpress.org
Tue Apr 15 23:28:15 UTC 2025


#63289: Error in validator.w3 (After updating to version 6.8)
--------------------------+------------------------------
 Reporter:  mike77777     |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Old description:

> After updating the site to version 6.8, in the validator –
> validator.w3.org, an error appeared – ‘ Error: Bad value speculationrules
> for attribute type on element script: Subtype missing.From line 778,
> column 1; to line 778, column 32v>↩</div>↩<script
> type="speculationrules">↩{"pre ‘
>
> How can I fix it? I have no errors on my site except this one and it’s
> very frustrating.
>
> During the previous update I also had an error in the validator related
> to – ‘contain-intrinsic-size’, I had to solve it myself by adding to the
> file – ‘functions.php’, the line ‘add_filter(‘wp_img_tag_add_auto_sizes’,
> ‘__return_false’);’ more about this –
> https://core.trac.wordpress.org/ticket/62413.

New description:

 After updating the site to version 6.8, in the validator –
 validator.w3.org, an error appeared – ‘ Error: Bad value
 `speculationrules` for attribute `type` on element `script`: Subtype
 missing.From line 778, column 1; to line 778, column 32`v>↩</div>↩<script
 type="speculationrules">↩{"pre`’

 How can I fix it? I have no errors on my site except this one and it’s
 very frustrating.

 During the previous update I also had an error in the validator related to
 – `contain-intrinsic-size`, I had to solve it myself by adding to the file
 – `functions.php`, the line `add_filter('wp_img_tag_add_auto_sizes',
 '__return_false');` more about this –
 https://core.trac.wordpress.org/ticket/62413.

--

Comment (by sabernhardt):

 ([https://wordpress.org/support/topic/error-in-validator-w3-bad-value-
 speculationrules/ original report on forums])

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


More information about the wp-trac mailing list