Skip to content
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

Fix the issue 1006 #1390

Closed
wants to merge 1 commit into from
Closed

Fix the issue 1006 #1390

wants to merge 1 commit into from

Conversation

SliverySky
Copy link

Fix the issue 1006. In old version, Chinese character is also considered as legal tag. e.g<一></一> this is not allow in chrome. String "<一>"will be mistaken as unclosed tag and be replace by <一></一>. The reason is that Character.isLetter() will consider all character in all language as letter.

…red as legal tag. e.g<一></一> this is not allow in chrome. String "<一>"will be mistaken as unclosed tag and be replace by <一></一>. The reason is that Character.isLetter will consider all character in all language as letter.
@jhy
Copy link
Owner

jhy commented Jan 11, 2021

Thanks for the PR, and sorry for the late reply.

I checked the HTML syntax spec and see that tags must start with an ASCII character. So the update should probably just be to do that. There's nothing Chinese-lang specific here so the change should not incorporate that.

Also for style of PRs - please make sure the title indicates the specific change (I can't remember bug numbers). And add the test case to an existing testcase file.

Will close this, but please feel welcome to re-open this or a new one to confirm to the spec (as detailed in #1006).

Also I believe the .isLetter check was a bugfix for another issue, so we will need to review that also.

@jhy jhy closed this Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants