Skip to content
This repository was archived by the owner on Feb 6, 2019. It is now read-only.

Cleanup a whole load of stuff #1

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open

Cleanup a whole load of stuff #1

wants to merge 38 commits into from

Conversation

gsnedders
Copy link
Owner

@gsnedders gsnedders commented May 2, 2016

Should summarise significant changes somewhere…

gsnedders added 13 commits May 2, 2016 22:05
The change in Indexer.py is a best guess of what is intended!
There's a few minor behaviour changes: paths aren't compared with
the various patterns case-insensitively now (this effects nothing
in csswg-test), and the exact syntax of reftest filenames has
changed (this fixes mediaqueries-3/ref.html so that it is picked
up as a reference).

This keeps the existing SourceTree class API for the moment. We
should probably eventually drop it, as it really doesn't make
sense for it to be a class.
@gsnedders
Copy link
Owner Author

This seems to currently change the encoding of a fair number of files. I have no idea why, currently.

@gsnedders
Copy link
Owner Author

Seems like 1fdfc03 changed encoding behaviour. I don't actually know what use of html5lib's internal APIs like the code used to do actually does…

@gsnedders
Copy link
Owner Author

8050c96 fixes that to correctly set source.encoding, and 376c750 tests that.

@gsnedders
Copy link
Owner Author

We're still dropping BOMs which we seem to not have done previously, which will break some tests.

@gsnedders
Copy link
Owner Author

Though dropping UTF-8 BOMs doesn't matter because .htaccess declares it to be UTF-8 already…

@gsnedders
Copy link
Owner Author

@Ms2ger do you wanna have a look over this before I try and get this all landed? this should be pure cleanup of the code, and no significant behavioural changes (the only significant change is the fact that a Suite now has only one Group in it).

@gsnedders
Copy link
Owner Author

gsnedders commented May 3, 2016

More breakage:

--- dist.old/css-variables-1_dev/html/variable-declaration-42.htm       2016-05-02 20:48:10.000000000 +0200
+++ dist/css-variables-1_dev/html/variable-declaration-42.htm   2016-05-02 23:59:58.000000000 +0200
@@ -13,8 +13,8 @@

Doesn't appear to be output as UTF-8 any more. Hmm.

Similar: dist/css-backgrounds-3_dev/html4/origin-padding-box_with_position.htm

@gsnedders
Copy link
Owner Author

These both have <meta charset=utf8> outwith the first 512 bytes.

@gsnedders
Copy link
Owner Author

Hmm, html spec nowadays does 500ms or 1024 bytes. Wonder when that changed?

@gsnedders
Copy link
Owner Author

So this PR depends on html5lib/html5lib-python#238.

@gsnedders
Copy link
Owner Author

Except that can't be, because it shouldn't have any real observable effect. Hmmm.

@gsnedders
Copy link
Owner Author

html5lib/html5lib-python#241 is it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant