-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes to the data format #160
Comments
Per #127 (comment), @hsivonen said:
I'm not totally sure what that was specifically about; in principle we've had a format change in e1f5573 which means the scripted/not-scripted distinction is normatively within the test. That said, I think it is fair to say that we should be relatively conservative with making format changes—it incurs work for quite a lot of people, which means we might want to have a discussion about whether there are other format changes we should make at the same time. |
The Validator.nu harness has been pretty sensitive to the order of the hash-prefixed sections, since the Validator.nu harness reads the test files as a stream instead of treating them as one big random-access thing. Changes in serialization (like proposed here) are easier to deal with than having the hash-prefixed sections in variable order. |
FWIW, this is another thing I was trying to sort out in #83 years ago, adding linting to assert the order is what it's meant to be. |
How does serializing attributes in insertion order improve test coverage? I'd think that the order doesn't matter. |
The order matters. |
How does it matter? |
I'm not sure what you mean. Element attributes are defined to be an insertion order. This is observable through various APIs. |
I want to make two changes to the ways attributes are serialized to ensure better test coverage:
As an example, https://github.com/html5lib/html5lib-tests/blob/master/tree-construction/tests10.dat#L388-L401 looks like
today and the last part would change to
to account for this. This should improve coverage a bit.
The text was updated successfully, but these errors were encountered: