Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Consistency: consume a single character at a time during attribute name state#519

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
jayaddison wants to merge2 commits intohtml5lib:masterfromjayaddison:cleanup/attribute-name-char-consumption
Closed

Consistency: consume a single character at a time during attribute name state#519

jayaddison wants to merge2 commits intohtml5lib:masterfromjayaddison:cleanup/attribute-name-char-consumption

Conversation

jayaddison
Copy link
Contributor

This is a small consistency fixup relating to the way that attribute names are retrieved; it also makes some follow-up refactoring work a little cleaner.

Parsing continues fine if we consume a single character at a time during attribute name tokenization, and this doesn't appear to affect performance positively or negatively.

@gsnedders
Copy link
Member

it also makes some follow-up refactoring work a little cleaner

FWIW, I think it's pretty likely that any Cython-compiled version of html5lib, once that exists, will usecharsUntil more widely than we do today.

@jayaddison
Copy link
ContributorAuthor

it also makes some follow-up refactoring work a little cleaner

FWIW, I think it's pretty likely that any Cython-compiled version of html5lib, once that exists, will usecharsUntil more widely than we do today.

That's a good goal/consideration to keep in mind, thanks. For this instance, the suggested change is largely to help indicate that there's no accidental change-of-behaviour introduced by the refactoring inhttps://github.com/html5lib/html5lib-python/pull/521/files#diff-84be0df9e74521d407f26e2277a2c70be21dbe6012fea9a5786721c5027e2cfaL894-R868

It also seems consistent with thecomment and logic intagNameState (I didn't copy the comment over - but could do)

@jayaddison
Copy link
ContributorAuthor

Cleaning up some old / stale pull requests; please let me know if this changeset is considered worthwhile and I'll reopen if so.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jayaddison@gsnedders

[8]ページ先頭

©2009-2025 Movatter.jp