W3C home > Mailing lists > Public > public-html@w3.org > August 2011

[Bug 13582] New: HTML5 suggestion: Elements of HTML section: Scripting and Document Metadata subsections

From: <bugzilla@jessica.w3.org>
Date: Wed, 03 Aug 2011 05:47:48 +0000
To: public-html@w3.org
Message-ID: <bug-13582-2495@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13582

           Summary: HTML5 suggestion: Elements of HTML section: Scripting
                    and Document Metadata subsections
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.w3.org/mid/BLU0-SMTP1068F87B5E7A69C392B78C9
                    8A4C0@phx.gbl
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: mike+html-wg-mailbot@w3.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


public-html-comments posting from: Andrew Martin <andrew@martinone.co.uk>
http://www.w3.org/mid/BLU0-SMTP1068F87B5E7A69C392B78C98A4C0@phx.gbl

When using JavaScript libraries such as jQuery or MooTools, they currently need
to be called from another file using an empty <script></script> element. It is
not currently possible, however, for a browser to have such libraries
pre-installed.

I would like to suggest the introduction of an empty <library> (<library /> in
XHTML) containing the attributes:
name (required) - the library's name. Case insensitive.
minvers - the minimum version required
maxvers - the maximum version required
src - the URL of the library, if a suitable version isn't pre-installed,
similar to <script>
type - just like <script>, the MIME type of the library. Defaults to
"text/javascript".

For example, jQuery (at least 1.4) could be called using:
<library name="jquery" minvers="1.4" src="jquery-1.6.2.min.js" />

Thanks,
Andrew Martin

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Wednesday, 3 August 2011 05:47:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:37 GMT