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

Updating HTML Walkthrough Documentation #985

Merged
merged 1 commit into from
Aug 15, 2017
Merged

Updating HTML Walkthrough Documentation #985

merged 1 commit into from
Aug 15, 2017

Conversation

YurkaninRyan
Copy link
Collaborator

With the changes to how we handle HTML Parsing, you no longer get a lower case tagName. This updates the documentation to account for that change. This should reduce some confusion.

@YurkaninRyan
Copy link
Collaborator Author

#976

@YurkaninRyan
Copy link
Collaborator Author

@ianstormtaylor Something that confuses me, should we be recommending that everyone passes in parse5 as their html parser? All of our tests seem to use it, and it also returns lowercase tag names

@echenley
Copy link
Contributor

echenley commented Aug 14, 2017

I believe the tag name issue was dealt with in #952?

@YurkaninRyan
Copy link
Collaborator Author

@echenley From what I can tell that was only updated in the paste-html example. while this touches the actual html walkthrough in the docs (which from what I can tell don't use .toLowerCase

But now i'm wondering if that's what we should be suggesting... to always force lower case. It makes sense to me.

@ianstormtaylor
Copy link
Owner

Thanks @YurkaninRyan!

@ianstormtaylor ianstormtaylor merged commit 17cd478 into ianstormtaylor:master Aug 15, 2017
oyeanuj added a commit to oyeanuj/slate that referenced this pull request Aug 25, 2017
* ianstormtaylor/master: (21 commits)
  0.21.3
  Add .babelrc into .npmignore (ianstormtaylor#1020)
  Add a missing dependency which was causing errors (ianstormtaylor#1017)
  Fixes ianstormtaylor#1010 — adds debuginfo to Contributing.md (ianstormtaylor#1011)
  Add State.characters to docs (ianstormtaylor#1006)
  Use parent node to find text node parent (ianstormtaylor#1004)
  IE11 compat (ianstormtaylor#996)
  Add .editorconfig and .gitattributes (ianstormtaylor#997)
  Improve documentation (ianstormtaylor#1000)
  Consistently use toLowerCase in tag name comparisons. (ianstormtaylor#1001)
  Custom wrapper component (ianstormtaylor#978)
  Add link to IME reference page in Contributing.md (ianstormtaylor#995)
  Don't break macOS emoji insert nor composition when fixing ianstormtaylor#938 (ianstormtaylor#994)
  When the `isInEditor` parameter is a text node use its parent only if the parent exists (ianstormtaylor#974)
  Document Raw serializer options (ianstormtaylor#993)
  tagName returns capitalized name now (ianstormtaylor#985)
  Fixes ianstormtaylor#938 chrome eating first line of text on space at beginning of line (ianstormtaylor#991)
  Fixes ianstormtaylor#817; fragment matcher regex (ianstormtaylor#992)
  Update ISSUE_TEMPLATE.md
  Update Contributing.md
  ...
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.

3 participants