- From: <bugzilla@jessica.w3.org>
- Date: Tue, 18 Oct 2011 12:45:10 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=14491 Summary: 'script' and 'style' are not consistent. 'script' have a 'src' attribute, but 'style' does not have a 'src' attribute. If the 'script' element is the cousin of 'style', then why doesn't both none of them have the src attribute? 'link' is used to load styl Product: HTML WG Version: unspecified Platform: Other URL: http://www.whatwg.org/specs/web-apps/current-work/#top OS/Version: other Status: NEW Severity: normal Priority: P3 Component: HTML5 spec (editor: Ian Hickson) AssignedTo: ian@hixie.ch ReportedBy: contributor@whatwg.org QAContact: public-html-bugzilla@w3.org CC: mike@w3.org, public-html-wg-issue-tracking@w3.org, public-html@w3.org Specification: http://dev.w3.org/html5/spec/ Multipage: http://www.whatwg.org/C#top Complete: http://www.whatwg.org/c#top Comment: 'script' and 'style' are not consistent. 'script' have a 'src' attribute, but 'style' does not have a 'src' attribute. If the 'script' element is the cousin of 'style', then why doesn't both none of them have the src attribute? 'link' is used to load style sheets, but not scripts. Why is that you load CSS with link, but not JavaScript with link? Both JavaScript and CSS are external resources and should be loaded in the same way. If scripts are loaded with the 'script' element, then why are not style sheets loaded with the 'style' element? == Consistent (Good) == <script src="script.js"> <style src="style.css"> == Consistent (Good) == <link src="script.js"> <link src="style.css"> == Inconsistent (Bad) == <link src="script.js"> <style src="style.css"> Posted from: 212.247.162.243 User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Tuesday, 18 October 2011 12:45:16 UTC