H tags (#28)
* Failing test * Allow numbers in el name tests * Allow numbers in el names
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
|||||||
} from './types';
|
} from './types';
|
||||||
|
|
||||||
let _id = 1;
|
let _id = 1;
|
||||||
const symbolAndNumberRegex = RegExp('[^a-z]');
|
const symbolAndNumberRegex = RegExp('[^a-z1-6]');
|
||||||
|
|
||||||
function genId(): number {
|
function genId(): number {
|
||||||
return _id++;
|
return _id++;
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ exports[`[html file]: basic.html 1`] = `
|
|||||||
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\" />
|
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\" />
|
||||||
<meta http-equiv=\\"X-UA-Compatible\\" content=\\"ie=edge\\" />
|
<meta http-equiv=\\"X-UA-Compatible\\" content=\\"ie=edge\\" />
|
||||||
<title>Document</title>
|
<title>Document</title>
|
||||||
</head><body></body></html>"
|
</head><body>
|
||||||
|
<h1>Title</h1></body></html>"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`[html file]: block-element.html 1`] = `
|
exports[`[html file]: block-element.html 1`] = `
|
||||||
@@ -184,8 +185,8 @@ exports[`[html file]: invalid-tagname.html 1`] = `
|
|||||||
<body>
|
<body>
|
||||||
<div>Hello</div>
|
<div>Hello</div>
|
||||||
<div>Hello</div>
|
<div>Hello</div>
|
||||||
<div>Hello</div>
|
<div></div>
|
||||||
<div></div></body></html>"
|
</body></html>"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`[html file]: picture.html 1`] = `
|
exports[`[html file]: picture.html 1`] = `
|
||||||
@@ -222,7 +223,7 @@ exports[`[html file]: with-relative-res.html 1`] = `
|
|||||||
<body>
|
<body>
|
||||||
<a href=\\"http://localhost:3030/basic.html\\"></a>
|
<a href=\\"http://localhost:3030/basic.html\\"></a>
|
||||||
<div>Hello</div>
|
<div>Hello</div>
|
||||||
<div>Hello</div>
|
<alt34>Hello</alt34>
|
||||||
<div>Hello</div>
|
<div>Hello</div>
|
||||||
<div></div>
|
<div></div>
|
||||||
<img src=\\"http://localhost:3030/a.jpg\\" alt=\\"\\" srcset=\\"\\" />
|
<img src=\\"http://localhost:3030/a.jpg\\" alt=\\"\\" srcset=\\"\\" />
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<h1>Title</h1>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<alt="">Hello</alt="">
|
<alt="">Hello</alt="">
|
||||||
<alt34>Hello</alt34>
|
|
||||||
<d123-_+!@#$%^&*()>Hello</d123-_+!@#$%^&*()>
|
<d123-_+!@#$%^&*()>Hello</d123-_+!@#$%^&*()>
|
||||||
<ale#></ale#>
|
<ale#></ale#>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user