Fix View Source error reporting for template upon EOF
Categories
(Core :: DOM: HTML Parser, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: hsivonen, Assigned: hsivonen)
Details
Attachments
(3 files, 2 obsolete files)
Assignee | ||
Comment 1•4 years ago
|
||
errListUnclosedStartTags
is not available to C++, so this patch doesn't compile.
Assignee | ||
Comment 2•4 years ago
|
||
Doing errUnclosedElements(eltPos, "template")
for EOF in the “in
template” state results in the error message “End tag template
seen, but
there were open elements”, which is all wrong because the actual problem is
that though a template
end tag was expected, EOF was reached without a
template
end tag being seen.
So let’s instead when we reach this just report the list of open elements.
Assignee | ||
Comment 3•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•3 years ago
|
||
Assignee | ||
Comment 6•3 years ago
|
||
Doing errUnclosedElements(eltPos, "template")
for EOF in the “in
template” state results in the error message “End tag template
seen, but
there were open elements”, which is all wrong because the actual problem is
that though a template
end tag was expected, EOF was reached without a
template
end tag being seen.
So let’s instead when we reach this just report the list of open elements.
Updated•3 years ago
|
Pushed by hsivonen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6e85069514f9 preparation - Add errListUnclosedStartTags for HTML tree builder error reporting. r=smaug https://hg.mozilla.org/integration/autoland/rev/2f58a8d24883 Correct error for EOF in “in template” state r=smaug
Comment 8•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/6e85069514f9
https://hg.mozilla.org/mozilla-central/rev/2f58a8d24883
Assignee | ||
Comment 9•3 years ago
|
||
Description
•