You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue originally raised by @da2x, in April, 2019, as PR #814 -
<link itemprop="subject" href="../example"> in Microdata is equivalent to <link property="subject" href="../example"> in RDFa. This HTML+RDFa syntax doesn’t trigger any errors or warnings from the W3C Nu Html Checker in HTML5 mode.
This change changes the requirement from link[itemprop|rel] to link[itemprop|property|rel] to support the HTML5+RDFa syntax.
While the PR #814 has been closed, since it was against master, it raises several important questions... maybe bugs!
Have added 2 tests - in_814.html, for html5, and in_814-1.html, for legacy html4... which can be put to the W3C validator... should get pass and fail respectively...
Running current tidy, 5.7.27, on either sample will give a warning, Warning: <link> lacks "rel" attribute! That seems wrong in both cases...
Presently experimenting with the following patch -
Running the resultant tidy 5.7.27.I814 on the samples appears to now do the right thing... the in_814.html, the html5, has no errors/warnings, while the in_814-1.html, the html4, outputs Warning: <link> attribute "property" not allowed for HTML 4.01 Transitional...
After as little more testing, will try to set this up as a PR... unless someone beats me to it...
Look forward to further feedback... thanks...
The text was updated successfully, but these errors were encountered:
This issue originally raised by @da2x, in April, 2019, as PR #814 -
<link itemprop="subject" href="../example">
in Microdata is equivalent to<link property="subject" href="../example">
in RDFa. This HTML+RDFa syntax doesn’t trigger any errors or warnings from the W3C Nu Html Checker in HTML5 mode.This change changes the requirement from
link[itemprop|rel]
tolink[itemprop|property|rel]
to support the HTML5+RDFa syntax.See also: https://www.w3.org/TR/html-rdfa/#extensions-to-the-html5-syntax
While the PR #814 has been closed, since it was against
master
, it raises several important questions... maybe bugs!Have added 2 tests - in_814.html, for html5, and in_814-1.html, for legacy html4... which can be put to the W3C validator... should get
pass
andfail
respectively...Running current tidy, 5.7.27, on either sample will give a warning,
Warning: <link> lacks "rel" attribute
! That seems wrong in both cases...Presently experimenting with the following patch -
Running the resultant tidy 5.7.27.I814 on the samples appears to now do the right thing... the in_814.html, the html5, has no errors/warnings, while the in_814-1.html, the html4, outputs
Warning: <link> attribute "property" not allowed for HTML 4.01 Transitional
...After as little more testing, will try to set this up as a PR... unless someone beats me to it...
Look forward to further feedback... thanks...
The text was updated successfully, but these errors were encountered: