Stefan444 Posted May 28, 2013 Share Posted May 28, 2013 (edited) [size=3][font=arial, helvetica, sans-serif]Hello,[/font][/size] [size=3][font=arial, helvetica, sans-serif]When validating W3C XHTML 1.0 Transitional I keep getting the error there is no attribute "srcset".[/font][/size][size=3][font=arial, helvetica, sans-serif]The code looks similar to the one on [url="http://www.w3.org/html/wg/drafts/srcset/w3c-srcset/"]http://www.w3.org/ht...set/w3c-srcset/[/url], but it still doesn't work.[/font][/size] [size=3][font=arial, helvetica, sans-serif]<div class="imageself self" style="width:468px;height:121px;">[/font][/size][size=3][font=arial, helvetica, sans-serif]<img width="468" height="121" id="image-1111C3BE-A814-4536-B78D-5AE9BCA3AA66" class="mobile-shrunk" src="http://www.xxx.be/onewebstatic/3303f82ae3-DeBedenkerij_logo_white_hires.jpg" srcset="http://www.xxx.be/onewebstatic/3303f82ae3-DeBedenkerij_logo_white_hires.jpg 570w, http://www....white_hires.jpg 1x" style="display:block;" title="" alt="De Bedenkerij" /> </div>[/font][/size] [size=3][font=arial, helvetica, sans-serif]Thanks for any tips :-)[/font][/size] Edited May 30, 2013 by Stefan444 Link to comment Share on other sites More sharing options...
thescientist Posted May 29, 2013 Share Posted May 29, 2013 its an attribute from the HTML5 spec. You should probably use HTML5 doctype. Link to comment Share on other sites More sharing options...
Stefan444 Posted May 30, 2013 Author Share Posted May 30, 2013 Thx for the answer.Since HTML5 is still in experimental mode I would rather not use it.What must I use to make this XHTML Transitional 1.0 compliant? Link to comment Share on other sites More sharing options...
newseed Posted May 30, 2013 Share Posted May 30, 2013 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Link to comment Share on other sites More sharing options...
Ingolme Posted May 31, 2013 Share Posted May 31, 2013 If you intend to use HTML 5 elements and attributes you have to use the HTML 5 doctype. They go together. HTML 5 is going to continue being a draft until around 2020, but the W3C and the WHATWG told developers to start using it already. Link to comment Share on other sites More sharing options...
Stefan444 Posted June 1, 2013 Author Share Posted June 1, 2013 If I select the HTML5 verification a lot of other errors pop up.Most of them I could solve (Bad value DC.source/format,....) but there are also the errors "Attribute srcset not allowed on element img at this point" and the error in Google analytics script. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now