Explore tweets tagged as #HTMLPictureElement
,"text":"document.createElement( "picture" );if(!window.HTMLPictureElement && document.addEventListener) {window.addEventListener("DOMContentLoaded", function() {var s = document.createElement("script");s.src https://t.co/79DjJkWEg4
0
0
0
Safari9.1がpictureタグをサポートしてないっぽいのにHTMLPictureElementコンストラクタが存在するのがとてもキモい。
0
0
1
@mmatuzo Nice! Makes sense to me: https://t.co/knUDIf0Qv5 Otherwise I use loadJS for picturefill like this <script>window.HTMLPictureElement&&"sizes"in document.createElement("img")||(document.createElement("picture"),loadJSfile("picturefill.min.js"));</script>
0
0
2
@scottjehl I was thinkin like if( !window.HTMLPictureElement){ loadJS('picturefill');} or is just a micro optimization? hell i'll try it ha
0
0
0
HTMLPictureElement (HTML DOM,Reference,Interface,API,Experimental) - by dskmori
0
0
0
@jaffathecake Oh I'm dumb. Thank you for pointing out my mistake. HTMLPictureElement.querySelector("img").currentSrc is all I needed :P
1
0
0
@polyfillio On Safari 9.1.2 you're returning the sourcemap which causes a SyntaxError: Unexpected end of script
0
0
0
@verlok The presence of HTMLPictureElement could be used for feature detection. See http://t.co/RixxsJb6Oa / @shawnjan8 @PicturePolyfill
1
0
1
Bug 870022 - Part 5.1 - Add HTMLPictureElement & atom. r=jst, sr=jst http://t.co/KP7fgzqVUr
0
0
0
@scottjehl I have been working on adding picturefill to the polyfill service however it doesnt expose itself on window.HTMLPictureElement
1
0
0
@wilto cloned webkit this morning. Looked into possible places HTMLPictureElement would fit. Let's coord this effort: yoav at yoav . ws
0
0
0
@culshaw @benhowdle @github since the “srcset” has only URL & PxRatio for Picture, I made my own, updated version »
1
0
0
Robert Longson - Use of the namespace when checking the tag name if HTMLPictureElement and HTMLSourceElement. r=... http://t.co/qfXzapDl73
0
0
0
OK guys, thanks to @benhowdle here is my first @GitHub repo, check this out :) »
1
0
1