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

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 the QA contact for the bug.

Received on Wednesday, 3 August 2011 05:47:49 UTC