Multiple languages inside Content-Language header/pragma should be treated as HTML5 requires
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
People
(Reporter: xn--mlform-iua, Unassigned)
References
()
Details
(Keywords: helpwanted, html5, student-project)
Reporter | ||
Comment 1•15 years ago
|
||
Updated•15 years ago
|
Comment 2•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Wow i just tried this, it still happens ten years later :D
Can I fix this by ignore the content property as soon as i see a comma inside it?
( i'm new here, so i'm not very sure how to approach these bugs )
Comment 4•4 years ago
•
|
||
That would be correct per the processing algorithm defined at https://html.spec.whatwg.org/#attr-meta-http-equiv-content-language. However, adding a test to ensure that Chrome and Safari follow that requirement would be good.
Edit: https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=8248 shows they follow the requirement (at least with a basic test).
Yes you are right, I'm still a little confused, where to make the change,
https://dxr.mozilla.org/mozilla-central/source/dom/html/HTMLMetaElement.cpp do i make a change in the meta tag or in the http part?
(In reply to yohaan from comment #5)
Yes you are right, I'm still a little confused, where to make the change,
https://dxr.mozilla.org/mozilla-central/source/dom/html/HTMLMetaElement.cpp do i make a change in the meta tag or in the http part?
https://dxr.mozilla.org/mozilla-central/source/dom/html/test/test_meta_attributes_reflection.html#27 this is a test for the attributes but nowhere in the /dom/html can i find http-equiv="Content-Language" it is always used with "Content-Type" where is the code implementing http-equiv is what i wanted to know sorry, thanks
Comment 7•4 years ago
|
||
I think the changes have to be made in https://dxr.mozilla.org/mozilla-central/source/dom/base/Document.cpp, but it looks like we might handle http-equiv and HTTP headers through the same code path? Henri, do you know how we handle this?
Comment 8•4 years ago
|
||
The go through the same code path.
HTTP headers:
https://searchfox.org/mozilla-central/rev/759872688df15a5d6ab305ffe39d90450590bfec/dom/base/Document.cpp#10643
Updated•2 years ago
|
Description
•