Skip to content

Commit 80fc271

Browse files
hsivonenjgraham
authored andcommitted
Add tree construction test cases for the fragment parsing algorithm with foreign context elements. Extend the test format to support this case.
1 parent a9badff commit 80fc271

File tree

2 files changed

+559
-3
lines changed

2 files changed

+559
-3
lines changed

tree-construction/README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ of parse errors.
2727

2828
Then there \*may\* be a line that says "\#document-fragment", which must
2929
be followed by a newline (LF), followed by a string of characters that
30-
indicates the context element, followed by a newline (LF). If this line
31-
is present the "\#data" must be parsed using the HTML fragment parsing
32-
algorithm with the context element as context.
30+
indicates the context element, followed by a newline (LF). If the string
31+
of characters starts with "svg ", the context element is in the SVG
32+
namespace and the substring after "svg " is the local name. If the
33+
string of characters starts with "math ", the context element is in the
34+
MathML namespace and the substring after "math " is the local name.
35+
Otherwise, the context element is in the HTML namespace and the string
36+
is the local name. If this line is present the "\#data" must be parsed
37+
using the HTML fragment parsing algorithm with the context element as
38+
context.
3339

3440
Then there \*may\* be a line that says "\#script-off" or
3541
"\#script-in". If a line that says "\#script-off" is present, the

0 commit comments

Comments
 (0)