Open
Description
I want to make two changes to the ways attributes are serialized to ensure better test coverage:
- They are no longer sorted. We enforce insertion order as the specification does.
- We serialize their qualified name, including prefix, if any.
As an example, https://github.com/html5lib/html5lib-tests/blob/master/tree-construction/tests10.dat#L388-L401 looks like
#data
<!DOCTYPE html><body xlink:href=foo xml:lang=en><svg><g xml:lang=en xlink:href=foo></g></svg>
#errors
#document
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| xlink:href="foo"
| xml:lang="en"
| <svg svg>
| <svg g>
| xlink href="foo"
| xml lang="en"
today and the last part would change to
| <svg g>
| xml xml:lang="en"
| xlink xlink:href="foo"
to account for this. This should improve coverage a bit.
Metadata
Metadata
Assignees
Labels
No labels