Skip to content

Commit 8c82274

Browse files
authored
Merge pull request #428 from titoBouzout/validate-lowercase
ignore case when validating tag nesting
2 parents 8c6025f + 809f00e commit 8c82274

File tree

1 file changed

+1
-1
lines changed
  • packages/babel-plugin-jsx-dom-expressions/src/shared

1 file changed

+1
-1
lines changed

packages/babel-plugin-jsx-dom-expressions/src/shared/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function isInvalidMarkup(html) {
8787
/** Parse HTML. `browser` is a string with the supposed resulting html of a real `innerHTML` call */
8888
const browser = innerHTML(html);
8989

90-
if (html !== browser) {
90+
if (html.toLowerCase() !== browser.toLowerCase()) {
9191
return {
9292
html,
9393
browser

0 commit comments

Comments
 (0)