snuggsi icon indicating copy to clipboard operation
snuggsi copied to clipboard

Test case for <option {selected}>

Open snuggs opened this issue 8 years ago • 4 comments

We TreeWalk attributes but do not check for the case where the attribute name is the token.

<option {selected}>foo</option>

snuggs avatar Apr 21 '17 16:04 snuggs

@VicenteRD confirmed it. We NEED this feature if we want to have logical display of elements within the page.

Am curious @VicenteRD does an <img src='' hidden> make a network request for the (blank) resource?

snuggs avatar Apr 26 '17 05:04 snuggs

@VicenteRD seems like src='' DOES NOT attempt to fetch a blank resource. I guess we got the green light ✅

snuggs avatar Apr 26 '17 06:04 snuggs

capture d ecran 2017-04-26 a 02 26 56

snuggs avatar Apr 26 '17 06:04 snuggs

capture d ecran 2017-04-26 a 02 33 30

Seems like empty src='' works in browsers but breaks the spec.

Can also use Data URIs as a "default" but not sure what one. @VicenteRD that's our homework.

  • (kinda dated) - http://probablyprogramming.com/2009/03/15/the-tiniest-gif-ever
  • https://codepen.io/tigt/details/OXJZPa
  • http://blog.teamtreehouse.com/using-data-uris-speed-website
  • http://stackoverflow.com/questions/6018611/smallest-data-uri-image-possible-for-a-transparent-image

snuggs avatar Apr 26 '17 06:04 snuggs