Commit 6c124b3
Ensure namespace-aware “clear the stack” handling
This change ensures that for all cases with spec requirements in the
form “clear the stack back to a foo context” — which involves checking
for elements with particular names — we only look for elements in the
HTML namespace, rather than additionally looking for elements which
aren’t in the HTML namespace but that also have those particular names.
Otherwise, without this change, we aren’t in conformance with the spec
requirements, and we fail several cases in the html5lib-tests suite.
Fixes #331 parent 9d72e92 commit 6c124b3
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3905 | 3905 | | |
3906 | 3906 | | |
3907 | 3907 | | |
3908 | | - | |
3909 | | - | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
3910 | 3911 | | |
3911 | 3912 | | |
3912 | 3913 | | |
| |||
4697 | 4698 | | |
4698 | 4699 | | |
4699 | 4700 | | |
4700 | | - | |
| 4701 | + | |
4701 | 4702 | | |
4702 | 4703 | | |
4703 | 4704 | | |
| |||
0 commit comments