Added srcset support (#18)

* added src set as a parsed attribute

* added tests

* changed to /a

* added multiple attribute handling

* added better comment

* made snapshot ignore invalid input as if it is invalid input in the original DOM, it should stay invalid in the recreated DOM

* added extra absolute test case

* code style

* addressed comments
This commit is contained in:
Filip Slatinac
2019-09-30 23:32:50 -04:00
committed by yz-yu
parent 7203517d15
commit 30bbd9e21d
4 changed files with 39 additions and 2 deletions

View File

@@ -9,5 +9,8 @@
<body>
<a href="./basic.html"></a>
<img src="./a.jpg" alt="" srcset="">
<img src="./a.jpg" alt="" srcset="/a.jpg">
<img src="./a.jpg" alt="" srcset="http://exmple.com/a.jpg ">
<img src="./a.jpg" alt="" srcset="/a.jpg 3x, /a.jpg 45x , /b.png">
</body>
</html>