Discovery API updates following feedback from http://lists.w3.org/Archives/Public/public-device-apis/2012Aug/0016.html
authorRich Tibbett <richt@opera.com>
Wed, 22 Aug 2012 16:00:54 +0200
changeset 1923ecf12df315d
parent 191 5e0da09685f7
parent 190 89e088d0d774
child 202 444a05503706
Discovery API updates following feedback from http://lists.w3.org/Archives/Public/public-device-apis/2012Aug/0016.html
api-design/index.html
discovery-api/Overview.src.html
discovery-api/js/core/base-runner.js
discovery-api/js/core/css/respec2.css
discovery-api/js/core/data-include.js
discovery-api/js/core/data-transform.js
discovery-api/js/core/default-root-attr.js
discovery-api/js/core/dfn.js
discovery-api/js/core/difftool.js
discovery-api/js/core/examples.js
discovery-api/js/core/figure.js
discovery-api/js/core/inlines.js
discovery-api/js/core/rdfa.js
discovery-api/js/core/remove-respec.js
discovery-api/js/core/structure.js
discovery-api/js/core/style.js
discovery-api/js/core/templates/webidl.html
discovery-api/js/core/tt.js
discovery-api/js/core/utils.js
discovery-api/js/core/webidl.js
discovery-api/js/local-proxy.js
discovery-api/js/profiles/w3c-common-loader.js
discovery-api/js/profiles/w3c-common.js
discovery-api/js/require.js
discovery-api/js/robineko/add-container.js
discovery-api/js/robineko/css/base.css
discovery-api/js/robineko/headers.js
discovery-api/js/robineko/profile-report.js
discovery-api/js/robineko/style.js
discovery-api/js/robineko/templates/headers.html
discovery-api/js/sh_min.js
discovery-api/js/test/basic.js
discovery-api/js/test/basic2.js
discovery-api/js/w3c/bibref.js
discovery-api/js/w3c/bibref/ABA-DSIG-GUIDELINES.js
discovery-api/js/w3c/bibref/ABC.js
discovery-api/js/w3c/bibref/ABNF.js
discovery-api/js/w3c/bibref/ACCESS-CONTROL.js
discovery-api/js/w3c/bibref/ACDI.js
discovery-api/js/w3c/bibref/ACSS.js
discovery-api/js/w3c/bibref/AD-INDUSTRY.js
discovery-api/js/w3c/bibref/AERT.js
discovery-api/js/w3c/bibref/AES-WRAP-PAD.js
discovery-api/js/w3c/bibref/AES-WRAP.js
discovery-api/js/w3c/bibref/AES.js
discovery-api/js/w3c/bibref/AGBDL.js
discovery-api/js/w3c/bibref/ANSI-X9-44-2007.js
discovery-api/js/w3c/bibref/ARABIC-MATH.js
discovery-api/js/w3c/bibref/ARABIC-TYPO.js
discovery-api/js/w3c/bibref/ATAG-WOMBAT.js
discovery-api/js/w3c/bibref/ATAG10-TECHS.js
discovery-api/js/w3c/bibref/ATAG10.js
discovery-api/js/w3c/bibref/ATAG20-TECHS.js
discovery-api/js/w3c/bibref/ATAG20.js
discovery-api/js/w3c/bibref/BACKPLANE.js
discovery-api/js/w3c/bibref/BECSS.js
discovery-api/js/w3c/bibref/BLOB.js
discovery-api/js/w3c/bibref/BONDI-ARCH-SECURITY-11.js
discovery-api/js/w3c/bibref/BONDI-FEATURES1-11.js
discovery-api/js/w3c/bibref/C14N-ISSUES.js
discovery-api/js/w3c/bibref/CALL-CONTROL-REQS.js
discovery-api/js/w3c/bibref/CC-ABOUT.js
discovery-api/js/w3c/bibref/CC-CHOOSE.js
discovery-api/js/w3c/bibref/CCPP-COORDINATION.js
discovery-api/js/w3c/bibref/CCPP-RA.js
discovery-api/js/w3c/bibref/CCPP-STRUCT-VOCAB2.js
discovery-api/js/w3c/bibref/CCPP-TA.js
discovery-api/js/w3c/bibref/CCPP-TRUST.js
discovery-api/js/w3c/bibref/CCPP.js
discovery-api/js/w3c/bibref/CCXML.js
discovery-api/js/w3c/bibref/CDFREQS.js
discovery-api/js/w3c/bibref/CDR.js
discovery-api/js/w3c/bibref/CDRREQS.js
discovery-api/js/w3c/bibref/CGM.js
discovery-api/js/w3c/bibref/CHARMOD-NORM.js
discovery-api/js/w3c/bibref/CHARMOD-RESID.js
discovery-api/js/w3c/bibref/CHARMOD.js
discovery-api/js/w3c/bibref/CHARREQ.js
discovery-api/js/w3c/bibref/CHARSETS.js
discovery-api/js/w3c/bibref/CLIPBOARD-APIS.js
discovery-api/js/w3c/bibref/CMS-Algorithms.js
discovery-api/js/w3c/bibref/CMS-WRAP.js
discovery-api/js/w3c/bibref/COLORIMETRY.js
discovery-api/js/w3c/bibref/CONTACTS-API.js
discovery-api/js/w3c/bibref/CONTACTS-WRITER-API.js
discovery-api/js/w3c/bibref/CONTENT-IN-RDF.js
discovery-api/js/w3c/bibref/COOKIES.js
discovery-api/js/w3c/bibref/COOLURIS.js
discovery-api/js/w3c/bibref/CORE-DEVICE.js
discovery-api/js/w3c/bibref/CORS.js
discovery-api/js/w3c/bibref/CPC-REQ.js
discovery-api/js/w3c/bibref/CSELECTION-PRIMER.js
discovery-api/js/w3c/bibref/CSELECTION-XAF.js
discovery-api/js/w3c/bibref/CSELECTION.js
discovery-api/js/w3c/bibref/CSS-MOBILE.js
discovery-api/js/w3c/bibref/CSS-POTENTIAL.js
discovery-api/js/w3c/bibref/CSS-PRINT.js
discovery-api/js/w3c/bibref/CSS-TV.js
discovery-api/js/w3c/bibref/CSS1.js
discovery-api/js/w3c/bibref/CSS2.js
discovery-api/js/w3c/bibref/CSS21.js
discovery-api/js/w3c/bibref/CSS3-2D-TRANSFORMS.js
discovery-api/js/w3c/bibref/CSS3-3D-TRANSFORMS.js
discovery-api/js/w3c/bibref/CSS3-ANIMATIONS.js
discovery-api/js/w3c/bibref/CSS3-HYPERLINKS.js
discovery-api/js/w3c/bibref/CSS3-MARQUEE.js
discovery-api/js/w3c/bibref/CSS3-PRESLEV.js
discovery-api/js/w3c/bibref/CSS3-READER.js
discovery-api/js/w3c/bibref/CSS3-TRANSITIONS.js
discovery-api/js/w3c/bibref/CSS3-WEBFONTS.js
discovery-api/js/w3c/bibref/CSS3BG.js
discovery-api/js/w3c/bibref/CSS3BORDER.js
discovery-api/js/w3c/bibref/CSS3BOX.js
discovery-api/js/w3c/bibref/CSS3CASCADE.js
discovery-api/js/w3c/bibref/CSS3COL.js
discovery-api/js/w3c/bibref/CSS3COLOR.js
discovery-api/js/w3c/bibref/CSS3FONT.js
discovery-api/js/w3c/bibref/CSS3GCPM.js
discovery-api/js/w3c/bibref/CSS3GENCON.js
discovery-api/js/w3c/bibref/CSS3GRID.js
discovery-api/js/w3c/bibref/CSS3INTRO.js
discovery-api/js/w3c/bibref/CSS3LAYOUT.js
discovery-api/js/w3c/bibref/CSS3LINE.js
discovery-api/js/w3c/bibref/CSS3LIST.js
discovery-api/js/w3c/bibref/CSS3MARQUEE.js
discovery-api/js/w3c/bibref/CSS3NAMESPACE.js
discovery-api/js/w3c/bibref/CSS3PAGE.js
discovery-api/js/w3c/bibref/CSS3POS.js
discovery-api/js/w3c/bibref/CSS3RUBY.js
discovery-api/js/w3c/bibref/CSS3SPEECH.js
discovery-api/js/w3c/bibref/CSS3SYN.js
discovery-api/js/w3c/bibref/CSS3TBL.js
discovery-api/js/w3c/bibref/CSS3TEXT.js
discovery-api/js/w3c/bibref/CSS3TEXTLAYOUT.js
discovery-api/js/w3c/bibref/CSS3UI.js
discovery-api/js/w3c/bibref/CSS3VAL.js
discovery-api/js/w3c/bibref/CSS3WRITINGMODES.js
discovery-api/js/w3c/bibref/CSSBEIJING.js
discovery-api/js/w3c/bibref/CSSOM-VIEW.js
discovery-api/js/w3c/bibref/CSSSTYLEATTR.js
discovery-api/js/w3c/bibref/CT-GUIDELINES.js
discovery-api/js/w3c/bibref/CT-LANDSCAPE.js
discovery-api/js/w3c/bibref/CURIE.js
discovery-api/js/w3c/bibref/CVE-2009-0217.js
discovery-api/js/w3c/bibref/CX.js
discovery-api/js/w3c/bibref/Coloring-RDF.js
discovery-api/js/w3c/bibref/Context-SW.js
discovery-api/js/w3c/bibref/DAHUT.js
discovery-api/js/w3c/bibref/DAP-ACCESS-REQS.js
discovery-api/js/w3c/bibref/DAP-POLICY-FRAMEWORK.js
discovery-api/js/w3c/bibref/DAP-PRIVACY-REQS.js
discovery-api/js/w3c/bibref/DAP-REQS.js
discovery-api/js/w3c/bibref/DAP-XACML-POLICY-PROFILE.js
discovery-api/js/w3c/bibref/DC11.js
discovery-api/js/w3c/bibref/DCONTOLOGY.js
discovery-api/js/w3c/bibref/DD-ECOSYSTEM.js
discovery-api/js/w3c/bibref/DD-LANDSCAPE.js
discovery-api/js/w3c/bibref/DD-STRUCTURES.js
discovery-api/js/w3c/bibref/DDR-CORE-VOCABULARY.js
discovery-api/js/w3c/bibref/DDR-REQUIREMENTS.js
discovery-api/js/w3c/bibref/DDR-SIMPLE-API.js
discovery-api/js/w3c/bibref/DES.js
discovery-api/js/w3c/bibref/DFAUI.js
discovery-api/js/w3c/bibref/DI-ATDI.js
discovery-api/js/w3c/bibref/DI-DCO.js
discovery-api/js/w3c/bibref/DI-GLOSS.js
discovery-api/js/w3c/bibref/DI-PRINC.js
discovery-api/js/w3c/bibref/DIAL-PRIMER.js
discovery-api/js/w3c/bibref/DIAL.js
discovery-api/js/w3c/bibref/DIG2000.js
discovery-api/js/w3c/bibref/DNS-SD.js
discovery-api/js/w3c/bibref/DOM-BINDINGS.js
discovery-api/js/w3c/bibref/DOM-CORE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-1-2e.js
discovery-api/js/w3c/bibref/DOM-LEVEL-1.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-CORE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-EVENTS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-HTML.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-STYLE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-TRAVERSAL-RANGE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-VIEWS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-AS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-CORE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-EVENTS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-LS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-VAL.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-VIEWS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-XPATH.js
discovery-api/js/w3c/bibref/DOM-REQUIREMENTS.js
discovery-api/js/w3c/bibref/DPF.js
discovery-api/js/w3c/bibref/DSIG-LABEL.js
discovery-api/js/w3c/bibref/DSIG-USAGE.js
discovery-api/js/w3c/bibref/DSS.js
discovery-api/js/w3c/bibref/Davis.js
discovery-api/js/w3c/bibref/EARL10-REQUIREMENTS.js
discovery-api/js/w3c/bibref/EARL10-SCHEMA.js
discovery-api/js/w3c/bibref/EBXML-MSG.js
discovery-api/js/w3c/bibref/EC-RELATED-ACTIVITIES.js
discovery-api/js/w3c/bibref/ECC-ALGS.js
discovery-api/js/w3c/bibref/ECMA-262.js
discovery-api/js/w3c/bibref/EGOV-IMPROVING.js
discovery-api/js/w3c/bibref/ELEMENTTRAVERSAL.js
discovery-api/js/w3c/bibref/ELEMTYPO.js
discovery-api/js/w3c/bibref/EMAIL.js
discovery-api/js/w3c/bibref/EMMA.js
discovery-api/js/w3c/bibref/EMMAREQS.js
discovery-api/js/w3c/bibref/ESDH.js
discovery-api/js/w3c/bibref/EVENTSOURCE.js
discovery-api/js/w3c/bibref/EXI-BEST-PRACTICES.js
discovery-api/js/w3c/bibref/EXI-EVALUATION.js
discovery-api/js/w3c/bibref/EXI-IMPACTS.js
discovery-api/js/w3c/bibref/EXI-MEASUREMENTS.js
discovery-api/js/w3c/bibref/EXI-PRIMER.js
discovery-api/js/w3c/bibref/EXI.js
discovery-api/js/w3c/bibref/FILE-API.js
discovery-api/js/w3c/bibref/FILE-UPLOAD.js
discovery-api/js/w3c/bibref/FILE-WRITER.js
discovery-api/js/w3c/bibref/FIN-PRIV-NOTICE.js
discovery-api/js/w3c/bibref/FIPS-180-3.js
discovery-api/js/w3c/bibref/FIPS-186-3.js
discovery-api/js/w3c/bibref/FIR.js
discovery-api/js/w3c/bibref/FLEX.js
discovery-api/js/w3c/bibref/FLEXBOX.js
discovery-api/js/w3c/bibref/GEOLOCATION-API.js
discovery-api/js/w3c/bibref/GEOPRIV-ARCH.js
discovery-api/js/w3c/bibref/GRDDL-PRIMER.js
discovery-api/js/w3c/bibref/GRDDL-SCENARIOS.js
discovery-api/js/w3c/bibref/GRDDL-TESTS.js
discovery-api/js/w3c/bibref/GRDDL.js
discovery-api/js/w3c/bibref/HASH-IN-URI.js
discovery-api/js/w3c/bibref/HCLS-KB.js
discovery-api/js/w3c/bibref/HCLS-SENSELAB.js
discovery-api/js/w3c/bibref/HLINK.js
discovery-api/js/w3c/bibref/HMAC.js
discovery-api/js/w3c/bibref/HMRMC.js
discovery-api/js/w3c/bibref/HSL.js
discovery-api/js/w3c/bibref/HTML-DESIGN-PRINCIPLES.js
discovery-api/js/w3c/bibref/HTML-DEVICE.js
discovery-api/js/w3c/bibref/HTML-LAN.js
discovery-api/js/w3c/bibref/HTML32.js
discovery-api/js/w3c/bibref/HTML40-MOBILE.js
discovery-api/js/w3c/bibref/HTML40.js
discovery-api/js/w3c/bibref/HTML401.js
discovery-api/js/w3c/bibref/HTML5-DIFF.js
discovery-api/js/w3c/bibref/HTML5-PUBNOTES.js
discovery-api/js/w3c/bibref/HTML5.js
discovery-api/js/w3c/bibref/HTMLICCPROF.js
discovery-api/js/w3c/bibref/HTMLMEDIACAPTURE.js
discovery-api/js/w3c/bibref/HTTP-IN-RDF.js
discovery-api/js/w3c/bibref/HTTP-NG-TESTBED.js
discovery-api/js/w3c/bibref/HTTP-TLS.js
discovery-api/js/w3c/bibref/HTTP11.js
discovery-api/js/w3c/bibref/HunterZhan.js
discovery-api/js/w3c/bibref/I18N-GUIDE-FRAMEWORK.js
discovery-api/js/w3c/bibref/I18N-HTML-TECH-BIDI.js
discovery-api/js/w3c/bibref/I18N-HTML-TECH-CHAR.js
discovery-api/js/w3c/bibref/I18N-HTML-TECH-LANG.js
discovery-api/js/w3c/bibref/ICC32.js
discovery-api/js/w3c/bibref/ICC42.js
discovery-api/js/w3c/bibref/ID-MGM.js
discovery-api/js/w3c/bibref/IEEE1363.js
discovery-api/js/w3c/bibref/IEEE802-3.js
discovery-api/js/w3c/bibref/ILU-REQUESTOR.js
discovery-api/js/w3c/bibref/IMAGEMAP.js
discovery-api/js/w3c/bibref/INKML.js
discovery-api/js/w3c/bibref/INKREQS.js
discovery-api/js/w3c/bibref/IRI.js
discovery-api/js/w3c/bibref/ISO10646.js
discovery-api/js/w3c/bibref/ISO15924.js
discovery-api/js/w3c/bibref/ISO18033-2.js
discovery-api/js/w3c/bibref/ISO8601.js
discovery-api/js/w3c/bibref/ISO8879.js
discovery-api/js/w3c/bibref/ISO9070.js
discovery-api/js/w3c/bibref/ITS.js
discovery-api/js/w3c/bibref/ITSREQ.js
discovery-api/js/w3c/bibref/ITUMCC.js
discovery-api/js/w3c/bibref/ITUMNC.js
discovery-api/js/w3c/bibref/JIGSAW.js
discovery-api/js/w3c/bibref/JIS4051.js
discovery-api/js/w3c/bibref/JISX4051.js
discovery-api/js/w3c/bibref/JLREQ.js
discovery-api/js/w3c/bibref/JPEG.js
discovery-api/js/w3c/bibref/JPEG2000.js
discovery-api/js/w3c/bibref/JSON-LD.js
discovery-api/js/w3c/bibref/KUIL.js
discovery-api/js/w3c/bibref/LANGCULTTYPE.js
discovery-api/js/w3c/bibref/LBASE.js
discovery-api/js/w3c/bibref/LDAP-DN.js
discovery-api/js/w3c/bibref/LEIRI.js
discovery-api/js/w3c/bibref/LEXICON-REQS.js
discovery-api/js/w3c/bibref/LIC-PRIV.js
discovery-api/js/w3c/bibref/LTLI.js
discovery-api/js/w3c/bibref/MATHML-BVAR.js
discovery-api/js/w3c/bibref/MATHML-FOR-CSS.js
discovery-api/js/w3c/bibref/MATHML-TYPES.js
discovery-api/js/w3c/bibref/MATHML-UNITS.js
discovery-api/js/w3c/bibref/MATHML.js
discovery-api/js/w3c/bibref/MATHML2.js
discovery-api/js/w3c/bibref/MATHML3.js
discovery-api/js/w3c/bibref/MCINTOSH-WRAP.js
discovery-api/js/w3c/bibref/MDNS.js
discovery-api/js/w3c/bibref/MEDIA-ANNOT-REQS.js
discovery-api/js/w3c/bibref/MEDIAACCESSEVENTS.js
discovery-api/js/w3c/bibref/MEDIACAPTURE-API.js
discovery-api/js/w3c/bibref/MEDIAONT-API.js
discovery-api/js/w3c/bibref/MEDIAQ.js
discovery-api/js/w3c/bibref/MESSAGING-API.js
discovery-api/js/w3c/bibref/MICROFORMATS.js
discovery-api/js/w3c/bibref/MIME-REG.js
discovery-api/js/w3c/bibref/MMI-ARCH.js
discovery-api/js/w3c/bibref/MMI-AUTH.js
discovery-api/js/w3c/bibref/MMI-DEV-FEEDBACK.js
discovery-api/js/w3c/bibref/MMI-FRAMEWORK.js
discovery-api/js/w3c/bibref/MMI-REQS.js
discovery-api/js/w3c/bibref/MMI-SUGGESTIONS.js
discovery-api/js/w3c/bibref/MMI-USE-CASES.js
discovery-api/js/w3c/bibref/MOBILE-BP-SCOPE.js
discovery-api/js/w3c/bibref/MOBILE-BP.js
discovery-api/js/w3c/bibref/MOBILEOK-BASIC10-TESTS.js
discovery-api/js/w3c/bibref/MOBILEOK.js
discovery-api/js/w3c/bibref/MODALITY-INTERFACE.js
discovery-api/js/w3c/bibref/MOZ-ICONS.js
discovery-api/js/w3c/bibref/MULTIMODAL-REQS.js
discovery-api/js/w3c/bibref/MWABP.js
discovery-api/js/w3c/bibref/MWBP-WCAG.js
discovery-api/js/w3c/bibref/N3.js
discovery-api/js/w3c/bibref/NAMED-GRAPHS.js
discovery-api/js/w3c/bibref/NAMES.js
discovery-api/js/w3c/bibref/NAMESPACESTATE.js
discovery-api/js/w3c/bibref/NAVIGATOR.js
discovery-api/js/w3c/bibref/NFC.js
discovery-api/js/w3c/bibref/NGRAM-SPEC.js
discovery-api/js/w3c/bibref/NL-SPEC.js
discovery-api/js/w3c/bibref/NOTE-CCPP.js
discovery-api/js/w3c/bibref/OASIS-TAG.js
discovery-api/js/w3c/bibref/OCSP.js
discovery-api/js/w3c/bibref/OEB101.js
discovery-api/js/w3c/bibref/OFFLINE-WEBAPPS.js
discovery-api/js/w3c/bibref/OMA-DM.js
discovery-api/js/w3c/bibref/OWL-FEATURES.js
discovery-api/js/w3c/bibref/OWL-GUIDE.js
discovery-api/js/w3c/bibref/OWL-PARSING.js
discovery-api/js/w3c/bibref/OWL-REF.js
discovery-api/js/w3c/bibref/OWL-SEMANTICS.js
discovery-api/js/w3c/bibref/OWL-TEST.js
discovery-api/js/w3c/bibref/OWL-TIME.js
discovery-api/js/w3c/bibref/OWL-XMLSYNTAX.js
discovery-api/js/w3c/bibref/OWL2-CONFORMANCE.js
discovery-api/js/w3c/bibref/OWL2-DIRECT-SEMANTICS.js
discovery-api/js/w3c/bibref/OWL2-MANCHESTER-SYNTAX.js
discovery-api/js/w3c/bibref/OWL2-MAPPING-TO-RDF.js
discovery-api/js/w3c/bibref/OWL2-NEW-FEATURES.js
discovery-api/js/w3c/bibref/OWL2-OVERVIEW.js
discovery-api/js/w3c/bibref/OWL2-PRIMER.js
discovery-api/js/w3c/bibref/OWL2-PROFILES.js
discovery-api/js/w3c/bibref/OWL2-QUICK-REFERENCE.js
discovery-api/js/w3c/bibref/OWL2-RDF-BASED-SEMANTICS.js
discovery-api/js/w3c/bibref/OWL2-SYNTAX.js
discovery-api/js/w3c/bibref/OWL2-XML-SERIALIZATION.js
discovery-api/js/w3c/bibref/P3P-PREFERENCES.js
discovery-api/js/w3c/bibref/P3P-RDFSCHEMA.js
discovery-api/js/w3c/bibref/P3P1.0.js
discovery-api/js/w3c/bibref/P3P10-PRINCIPLES.js
discovery-api/js/w3c/bibref/P3P10-PROTOCOLS.js
discovery-api/js/w3c/bibref/P3P11.js
discovery-api/js/w3c/bibref/P3PDEPLOYMENT.js
discovery-api/js/w3c/bibref/PGP.js
discovery-api/js/w3c/bibref/PICS-LABELS.js
discovery-api/js/w3c/bibref/PICS-SERVICES.js
discovery-api/js/w3c/bibref/PICSRULES.js
discovery-api/js/w3c/bibref/PKCS1.js
discovery-api/js/w3c/bibref/PKCS5.js
discovery-api/js/w3c/bibref/PKCS5Amd1.js
discovery-api/js/w3c/bibref/PNG2e.js
discovery-api/js/w3c/bibref/POCO-SCHEMA.js
discovery-api/js/w3c/bibref/POINTERS-IN-RDF.js
discovery-api/js/w3c/bibref/POSITIONING.js
discovery-api/js/w3c/bibref/POWDER-DR.js
discovery-api/js/w3c/bibref/POWDER-FORMAL.js
discovery-api/js/w3c/bibref/POWDER-GROUPING.js
discovery-api/js/w3c/bibref/POWDER-PRIMER.js
discovery-api/js/w3c/bibref/POWDER-TEST.js
discovery-api/js/w3c/bibref/POWDER-USE-CASES.js
discovery-api/js/w3c/bibref/POWDER-VOC.js
discovery-api/js/w3c/bibref/POWDER-XSD.js
discovery-api/js/w3c/bibref/PRINT.js
discovery-api/js/w3c/bibref/PRIV-ICONS.js
discovery-api/js/w3c/bibref/PRIV-ICONSET.js
discovery-api/js/w3c/bibref/PRIV-LABEL.js
discovery-api/js/w3c/bibref/PRIVACY-ISSUES-GEO.js
discovery-api/js/w3c/bibref/PROC-MODEL-REQ.js
discovery-api/js/w3c/bibref/PROGRESS-EVENTS.js
discovery-api/js/w3c/bibref/PRONUNCIATION-LEXICON.js
discovery-api/js/w3c/bibref/PROV-QUERY.js
discovery-api/js/w3c/bibref/PROV-RDF-S.js
discovery-api/js/w3c/bibref/PWGMSN.js
discovery-api/js/w3c/bibref/QA-HANDBOOK.js
discovery-api/js/w3c/bibref/QAFRAME-OPS-EXTECH.js
discovery-api/js/w3c/bibref/QAFRAME-SPEC.js
discovery-api/js/w3c/bibref/QAFRAME-TEST.js
discovery-api/js/w3c/bibref/QNAMES.js
discovery-api/js/w3c/bibref/RANDOM.js
discovery-api/js/w3c/bibref/RDF-CONCEPTS.js
discovery-api/js/w3c/bibref/RDF-DAWG-UC.js
discovery-api/js/w3c/bibref/RDF-MT.js
discovery-api/js/w3c/bibref/RDF-PRIMER.js
discovery-api/js/w3c/bibref/RDF-SCHEMA.js
discovery-api/js/w3c/bibref/RDF-SPARQL-JSON-RES.js
discovery-api/js/w3c/bibref/RDF-SPARQL-PROTOCOL.js
discovery-api/js/w3c/bibref/RDF-SPARQL-QUERY.js
discovery-api/js/w3c/bibref/RDF-SPARQL-XMLRES.js
discovery-api/js/w3c/bibref/RDF-SYNTAX-GRAMMAR.js
discovery-api/js/w3c/bibref/RDF-SYNTAX.js
discovery-api/js/w3c/bibref/RDF-TESTCASES.js
discovery-api/js/w3c/bibref/RDF-UML.js
discovery-api/js/w3c/bibref/RDFA-CORE.js
discovery-api/js/w3c/bibref/RDFA-PRIMER.js
discovery-api/js/w3c/bibref/RDFA-SYNTAX.js
discovery-api/js/w3c/bibref/RDFCAL.js
discovery-api/js/w3c/bibref/RDFTM-SURVEY.js
discovery-api/js/w3c/bibref/RELAXNG-SCHEMA.js
discovery-api/js/w3c/bibref/REUSABLE-DIALOG-REQS.js
discovery-api/js/w3c/bibref/REX-REQS.js
discovery-api/js/w3c/bibref/REX.js
discovery-api/js/w3c/bibref/RFC1034.js
discovery-api/js/w3c/bibref/RFC1738.js
discovery-api/js/w3c/bibref/RFC1808.js
discovery-api/js/w3c/bibref/RFC2045.js
discovery-api/js/w3c/bibref/RFC2046.js
discovery-api/js/w3c/bibref/RFC2119.js
discovery-api/js/w3c/bibref/RFC2231.js
discovery-api/js/w3c/bibref/RFC2318.js
discovery-api/js/w3c/bibref/RFC2397.js
discovery-api/js/w3c/bibref/RFC2426.js
discovery-api/js/w3c/bibref/RFC2531.js
discovery-api/js/w3c/bibref/RFC2533.js
discovery-api/js/w3c/bibref/RFC2534.js
discovery-api/js/w3c/bibref/RFC2854.js
discovery-api/js/w3c/bibref/RFC2978.js
discovery-api/js/w3c/bibref/RFC3161-PKIX-UPDATE-9.js
discovery-api/js/w3c/bibref/RFC3161.js
discovery-api/js/w3c/bibref/RFC3236.js
discovery-api/js/w3c/bibref/RFC3279.js
discovery-api/js/w3c/bibref/RFC3406.js
discovery-api/js/w3c/bibref/RFC3490.js
discovery-api/js/w3c/bibref/RFC3987.js
discovery-api/js/w3c/bibref/RFC4050.js
discovery-api/js/w3c/bibref/RFC4051.js
discovery-api/js/w3c/bibref/RFC4055.js
discovery-api/js/w3c/bibref/RFC4122.js
discovery-api/js/w3c/bibref/RFC4281.js
discovery-api/js/w3c/bibref/RFC4572.js
discovery-api/js/w3c/bibref/RFC4627.js
discovery-api/js/w3c/bibref/RFC4770.js
discovery-api/js/w3c/bibref/RFC4949.js
discovery-api/js/w3c/bibref/RFC5280.js
discovery-api/js/w3c/bibref/RFC5480.js
discovery-api/js/w3c/bibref/RFC5545.js
discovery-api/js/w3c/bibref/RIF-BLD.js
discovery-api/js/w3c/bibref/RIF-CORE.js
discovery-api/js/w3c/bibref/RIF-DTB.js
discovery-api/js/w3c/bibref/RIF-FLD.js
discovery-api/js/w3c/bibref/RIF-OVERVIEW.js
discovery-api/js/w3c/bibref/RIF-PRD.js
discovery-api/js/w3c/bibref/RIF-RDF-OWL.js
discovery-api/js/w3c/bibref/RIF-TEST.js
discovery-api/js/w3c/bibref/RIF-UCR.js
discovery-api/js/w3c/bibref/RIPEMD-160.js
discovery-api/js/w3c/bibref/RUBY.js
discovery-api/js/w3c/bibref/S6GROUP2.js
discovery-api/js/w3c/bibref/SAML2-CORE.js
discovery-api/js/w3c/bibref/SAWSDL-GUIDE.js
discovery-api/js/w3c/bibref/SAWSDL.js
discovery-api/js/w3c/bibref/SAX.js
discovery-api/js/w3c/bibref/SCHEMA-ARCH.js
discovery-api/js/w3c/bibref/SCXML.js
discovery-api/js/w3c/bibref/SECG1.js
discovery-api/js/w3c/bibref/SELECT.js
discovery-api/js/w3c/bibref/SELECTORS-API.js
discovery-api/js/w3c/bibref/SEMANTIC-INTERPRETATION.js
discovery-api/js/w3c/bibref/SGML-CATALOG.js
discovery-api/js/w3c/bibref/SGML-XML.js
discovery-api/js/w3c/bibref/SHA-1-Analysis.js
discovery-api/js/w3c/bibref/SHA-1-Collisions.js
discovery-api/js/w3c/bibref/SKOS-PRIMER.js
discovery-api/js/w3c/bibref/SKOS-REFERENCE.js
discovery-api/js/w3c/bibref/SKOS-UCR.js
discovery-api/js/w3c/bibref/SMIL-ANIMATION.js
discovery-api/js/w3c/bibref/SMIL10.js
discovery-api/js/w3c/bibref/SMIL2.js
discovery-api/js/w3c/bibref/SMIL20.js
discovery-api/js/w3c/bibref/SMIL3.js
discovery-api/js/w3c/bibref/SML-IF.js
discovery-api/js/w3c/bibref/SML.js
discovery-api/js/w3c/bibref/SOAP11-ROR-HTTPBINDING.js
discovery-api/js/w3c/bibref/SOAP12-AF.js
discovery-api/js/w3c/bibref/SOAP12-EMAIL.js
discovery-api/js/w3c/bibref/SOAP12-MTOM-POLICY.js
discovery-api/js/w3c/bibref/SOAP12-MTOM.js
discovery-api/js/w3c/bibref/SOAP12-N11N.js
discovery-api/js/w3c/bibref/SOAP12-OS-UCR.js
discovery-api/js/w3c/bibref/SOAP12-PART0.js
discovery-api/js/w3c/bibref/SOAP12-PART1.js
discovery-api/js/w3c/bibref/SOAP12-PART2.js
discovery-api/js/w3c/bibref/SOAP12-PART3.js
discovery-api/js/w3c/bibref/SOAP12-REP.js
discovery-api/js/w3c/bibref/SOAP12-TESTCOLLECTION.js
discovery-api/js/w3c/bibref/SOAPJMS.js
discovery-api/js/w3c/bibref/SP800-38D.js
discovery-api/js/w3c/bibref/SP800-56A.js
discovery-api/js/w3c/bibref/SP800-57.js
discovery-api/js/w3c/bibref/SPEC-VARIABILITY.js
discovery-api/js/w3c/bibref/SPEECH-GRAMMAR.js
discovery-api/js/w3c/bibref/SPEECH-SYNTHESIS.js
discovery-api/js/w3c/bibref/SPEECH-SYNTHESIS11.js
discovery-api/js/w3c/bibref/SPROT11.js
discovery-api/js/w3c/bibref/SRGB.js
discovery-api/js/w3c/bibref/SSML-SAYAS.js
discovery-api/js/w3c/bibref/SSML11REQS.js
discovery-api/js/w3c/bibref/SUS3.js
discovery-api/js/w3c/bibref/SVG10.js
discovery-api/js/w3c/bibref/SVG11.js
discovery-api/js/w3c/bibref/SVG12.js
discovery-api/js/w3c/bibref/SVG2REQS.js
discovery-api/js/w3c/bibref/SVGFILTER12.js
discovery-api/js/w3c/bibref/SVGFILTERPRIMER12.js
discovery-api/js/w3c/bibref/SVGFILTERREQS12.js
discovery-api/js/w3c/bibref/SVGMOBILE.js
discovery-api/js/w3c/bibref/SVGMOBILE12.js
discovery-api/js/w3c/bibref/SVGMOBILEREQS.js
discovery-api/js/w3c/bibref/SVGPRINT12.js
discovery-api/js/w3c/bibref/SVGPRINTPRIMER12.js
discovery-api/js/w3c/bibref/SVGPRINTREQS.js
discovery-api/js/w3c/bibref/SVGREQ.js
discovery-api/js/w3c/bibref/SVGTINY12.js
discovery-api/js/w3c/bibref/SVGTINY12REQS.js
discovery-api/js/w3c/bibref/SW-OOSD-PRIMER.js
discovery-api/js/w3c/bibref/SWBP-CLASSES-AS-VALUES.js
discovery-api/js/w3c/bibref/SWBP-N-ARYRELATIONS.js
discovery-api/js/w3c/bibref/SWBP-SKOS-CORE-GUIDE.js
discovery-api/js/w3c/bibref/SWBP-SKOS-CORE-SPEC.js
discovery-api/js/w3c/bibref/SWBP-SPECIFIED-VALUES.js
discovery-api/js/w3c/bibref/SWBP-THESAURUS-PUBGUIDE.js
discovery-api/js/w3c/bibref/SWBP-VOCAB-PUB.js
discovery-api/js/w3c/bibref/SWBP-XSCH-DATATYPES.js
discovery-api/js/w3c/bibref/SXBL.js
discovery-api/js/w3c/bibref/SXSWGRIDS.js
discovery-api/js/w3c/bibref/SYMM-MODULES.js
discovery-api/js/w3c/bibref/SYSINFOAPI.js
discovery-api/js/w3c/bibref/TAGLINK20030116.js
discovery-api/js/w3c/bibref/TEST-METADATA.js
discovery-api/js/w3c/bibref/THEGRID.js
discovery-api/js/w3c/bibref/TIMESHEETS.js
discovery-api/js/w3c/bibref/TIMEZONE.js
discovery-api/js/w3c/bibref/TRIPLEDES.js
discovery-api/js/w3c/bibref/TTAF1-DFXP.js
discovery-api/js/w3c/bibref/TTAF1-REQ.js
discovery-api/js/w3c/bibref/TURINGTEST.js
discovery-api/js/w3c/bibref/TURTLE.js
discovery-api/js/w3c/bibref/TVWEB-URI-REQUIREMENTS.js
discovery-api/js/w3c/bibref/TYPED-ARRAYS.js
discovery-api/js/w3c/bibref/Tobin.js
discovery-api/js/w3c/bibref/UAAG10-TECHS.js
discovery-api/js/w3c/bibref/UAAG10.js
discovery-api/js/w3c/bibref/UAAG20-REQUIREMENTS.js
discovery-api/js/w3c/bibref/UAAG20.js
discovery-api/js/w3c/bibref/UAX11.js
discovery-api/js/w3c/bibref/UAX14.js
discovery-api/js/w3c/bibref/UAX21.js
discovery-api/js/w3c/bibref/UAX24.js
discovery-api/js/w3c/bibref/UAX27.js
discovery-api/js/w3c/bibref/UAX29.js
discovery-api/js/w3c/bibref/UNDERSTANDING-WCAG20.js
discovery-api/js/w3c/bibref/UNICODE-XML.js
discovery-api/js/w3c/bibref/UNICODE.js
discovery-api/js/w3c/bibref/UNICODE310.js
discovery-api/js/w3c/bibref/UNICODE4.js
discovery-api/js/w3c/bibref/UNICODE5.js
discovery-api/js/w3c/bibref/UPNP.js
discovery-api/js/w3c/bibref/URI-CLARIFICATION.js
discovery-api/js/w3c/bibref/URI.js
discovery-api/js/w3c/bibref/URN-OID.js
discovery-api/js/w3c/bibref/URN.js
discovery-api/js/w3c/bibref/UTF-16.js
discovery-api/js/w3c/bibref/UTF-8.js
discovery-api/js/w3c/bibref/UTR24.js
discovery-api/js/w3c/bibref/VBI-REQS.js
discovery-api/js/w3c/bibref/VOICE-ARCHITECTURE.js
discovery-api/js/w3c/bibref/VOICE-DIALOG-REQS.js
discovery-api/js/w3c/bibref/VOICE-GRAMMAR-REQS.js
discovery-api/js/w3c/bibref/VOICE-INTRO.js
discovery-api/js/w3c/bibref/VOICE-NLU-REQS.js
discovery-api/js/w3c/bibref/VOICE-TTS-REQS.js
discovery-api/js/w3c/bibref/VOICE.js
discovery-api/js/w3c/bibref/VOICEXML20.js
discovery-api/js/w3c/bibref/VOICEXML21.js
discovery-api/js/w3c/bibref/VOICEXML30.js
discovery-api/js/w3c/bibref/VXML30REQS.js
discovery-api/js/w3c/bibref/WAI-AGE-LITERATURE.js
discovery-api/js/w3c/bibref/WAI-ARIA-IMPLEMENTATION.js
discovery-api/js/w3c/bibref/WAI-ARIA-PRACTICES.js
discovery-api/js/w3c/bibref/WAI-ARIA-PRIMER.js
discovery-api/js/w3c/bibref/WAI-ARIA-ROADMAP.js
discovery-api/js/w3c/bibref/WAI-ARIA.js
discovery-api/js/w3c/bibref/WCA.js
discovery-api/js/w3c/bibref/WCAG.js
discovery-api/js/w3c/bibref/WCAG10-CORE-TECHS.js
discovery-api/js/w3c/bibref/WCAG10-CSS-TECHS.js
discovery-api/js/w3c/bibref/WCAG10-HTML-TECHS.js
discovery-api/js/w3c/bibref/WCAG10-TECHS.js
discovery-api/js/w3c/bibref/WCAG2-REQ.js
discovery-api/js/w3c/bibref/WCAG2-TECH-REQ.js
discovery-api/js/w3c/bibref/WCAG20-TECHS.js
discovery-api/js/w3c/bibref/WCAG20.js
discovery-api/js/w3c/bibref/WCSS11.js
discovery-api/js/w3c/bibref/WCSS12.js
discovery-api/js/w3c/bibref/WEB-FORMS-2.js
discovery-api/js/w3c/bibref/WEBARCH.js
discovery-api/js/w3c/bibref/WEBCGM.js
discovery-api/js/w3c/bibref/WEBCGM20.js
discovery-api/js/w3c/bibref/WEBCGM21.js
discovery-api/js/w3c/bibref/WEBIDL.js
discovery-api/js/w3c/bibref/WEBMESSAGING.js
discovery-api/js/w3c/bibref/WEBONT-REQ.js
discovery-api/js/w3c/bibref/WEBSOCKETS.js
discovery-api/js/w3c/bibref/WEBSTORAGE.js
discovery-api/js/w3c/bibref/WEBWORKERS.js
discovery-api/js/w3c/bibref/WICD.js
discovery-api/js/w3c/bibref/WICDFULL.js
discovery-api/js/w3c/bibref/WICDMobile10.js
discovery-api/js/w3c/bibref/WIDGETS-APIS.js
discovery-api/js/w3c/bibref/WIDGETS-DIGSIG.js
discovery-api/js/w3c/bibref/WIDGETS-LAND.js
discovery-api/js/w3c/bibref/WIDGETS-PC-INTEROP.js
discovery-api/js/w3c/bibref/WIDGETS-PC-TESTS.js
discovery-api/js/w3c/bibref/WIDGETS-REQS.js
discovery-api/js/w3c/bibref/WIDGETS-UPDATES.js
discovery-api/js/w3c/bibref/WIDGETS.js
discovery-api/js/w3c/bibref/WINDOW.js
discovery-api/js/w3c/bibref/WORDNET-RDF.js
discovery-api/js/w3c/bibref/WS-ADDR-CORE.js
discovery-api/js/w3c/bibref/WS-ADDR-METADATA.js
discovery-api/js/w3c/bibref/WS-ADDR-SOAP.js
discovery-api/js/w3c/bibref/WS-ARCH-SCENARIOS.js
discovery-api/js/w3c/bibref/WS-ARCH.js
discovery-api/js/w3c/bibref/WS-CDL-10-PRIMER.js
discovery-api/js/w3c/bibref/WS-CDL-10.js
discovery-api/js/w3c/bibref/WS-CHOR-MODEL.js
discovery-api/js/w3c/bibref/WS-CHOR-REQS.js
discovery-api/js/w3c/bibref/WS-DESC-REQS.js
discovery-api/js/w3c/bibref/WS-DESC-USECASES.js
discovery-api/js/w3c/bibref/WS-ENUMERATION.js
discovery-api/js/w3c/bibref/WS-EVENTING.js
discovery-api/js/w3c/bibref/WS-FRAGMENT.js
discovery-api/js/w3c/bibref/WS-GLOSS.js
discovery-api/js/w3c/bibref/WS-I18N-REQ.js
discovery-api/js/w3c/bibref/WS-I18N-SCENARIOS.js
discovery-api/js/w3c/bibref/WS-I18N.js
discovery-api/js/w3c/bibref/WS-METADATA-EXCHANGE.js
discovery-api/js/w3c/bibref/WS-POLICY-ATTACH.js
discovery-api/js/w3c/bibref/WS-POLICY-GUIDELINES.js
discovery-api/js/w3c/bibref/WS-POLICY-PRIMER.js
discovery-api/js/w3c/bibref/WS-POLICY.js
discovery-api/js/w3c/bibref/WS-RESOURCE-TRANSFER.js
discovery-api/js/w3c/bibref/WS-SECURITY11.js
discovery-api/js/w3c/bibref/WS-TRANSFER.js
discovery-api/js/w3c/bibref/WSA-REQS.js
discovery-api/js/w3c/bibref/WSC-THREATS.js
discovery-api/js/w3c/bibref/WSC-UI.js
discovery-api/js/w3c/bibref/WSC-USECASES.js
discovery-api/js/w3c/bibref/WSC-XIT.js
discovery-api/js/w3c/bibref/WSDL11ELEMENTIDENTIFIERS.js
discovery-api/js/w3c/bibref/WSDL20-ADDITIONAL-MEPS.js
discovery-api/js/w3c/bibref/WSDL20-ADJUNCTS.js
discovery-api/js/w3c/bibref/WSDL20-ALTSCHEMALANGS.js
discovery-api/js/w3c/bibref/WSDL20-PRIMER.js
discovery-api/js/w3c/bibref/WSDL20-RDF.js
discovery-api/js/w3c/bibref/WSDL20-SOAP11-BINDING.js
discovery-api/js/w3c/bibref/WSDL20.js
discovery-api/js/w3c/bibref/WSLC.js
discovery-api/js/w3c/bibref/WebBug-Wikipedia.js
discovery-api/js/w3c/bibref/X11COLORS.js
discovery-api/js/w3c/bibref/X509V3.js
discovery-api/js/w3c/bibref/XACML-INTRO.js
discovery-api/js/w3c/bibref/XACML20.js
discovery-api/js/w3c/bibref/XADES.js
discovery-api/js/w3c/bibref/XAG.js
discovery-api/js/w3c/bibref/XBC-CHARACTERIZATION.js
discovery-api/js/w3c/bibref/XBC-MEASUREMENT.js
discovery-api/js/w3c/bibref/XBC-PROPERTIES.js
discovery-api/js/w3c/bibref/XBC-USE-CASES.js
discovery-api/js/w3c/bibref/XBL-PRIMER.js
discovery-api/js/w3c/bibref/XBL.js
discovery-api/js/w3c/bibref/XFORMS-11-REQ.js
discovery-api/js/w3c/bibref/XFORMS-BASIC.js
discovery-api/js/w3c/bibref/XFORMS-FOR-HTML.js
discovery-api/js/w3c/bibref/XFORMS10.js
discovery-api/js/w3c/bibref/XFORMS11.js
discovery-api/js/w3c/bibref/XFRAMES.js
discovery-api/js/w3c/bibref/XH.js
discovery-api/js/w3c/bibref/XHTML-ACCESS.js
discovery-api/js/w3c/bibref/XHTML-BASIC.js
discovery-api/js/w3c/bibref/XHTML-BASIC11.js
discovery-api/js/w3c/bibref/XHTML-FORMS-REQ.js
discovery-api/js/w3c/bibref/XHTML-MEDIA-TYPES.js
discovery-api/js/w3c/bibref/XHTML-MODULARIZATION.js
discovery-api/js/w3c/bibref/XHTML-MODULARIZATION11-2e.js
discovery-api/js/w3c/bibref/XHTML-MODULARIZATION11.js
discovery-api/js/w3c/bibref/XHTML-PRINT.js
discovery-api/js/w3c/bibref/XHTML-PROF-REQ.js
discovery-api/js/w3c/bibref/XHTML-RDFA-PRIMER.js
discovery-api/js/w3c/bibref/XHTML-RDFA-SCENARIOS.js
discovery-api/js/w3c/bibref/XHTML-RDFA.js
discovery-api/js/w3c/bibref/XHTML-ROADMAP.js
discovery-api/js/w3c/bibref/XHTML-ROLE.js
discovery-api/js/w3c/bibref/XHTML-VOCAB.js
discovery-api/js/w3c/bibref/XHTML1-SCHEMA.js
discovery-api/js/w3c/bibref/XHTML10.js
discovery-api/js/w3c/bibref/XHTML11-2e.js
discovery-api/js/w3c/bibref/XHTML11.js
discovery-api/js/w3c/bibref/XHTML2.js
discovery-api/js/w3c/bibref/XHTMLPLUSMATHMLPLUSSVG.js
discovery-api/js/w3c/bibref/XHTMLPLUSSMIL.js
discovery-api/js/w3c/bibref/XINCLUDE.js
discovery-api/js/w3c/bibref/XKMS-PGP.js
discovery-api/js/w3c/bibref/XKMS-WSDL.js
discovery-api/js/w3c/bibref/XKMS2-BINDINGS.js
discovery-api/js/w3c/bibref/XKMS2-REQ.js
discovery-api/js/w3c/bibref/XKMS2.js
discovery-api/js/w3c/bibref/XLINK-PRINCIPLES.js
discovery-api/js/w3c/bibref/XLINK-REQ.js
discovery-api/js/w3c/bibref/XLINK10-EXT.js
discovery-api/js/w3c/bibref/XLINK10.js
discovery-api/js/w3c/bibref/XLINK11.js
discovery-api/js/w3c/bibref/XLINK2RDF.js
discovery-api/js/w3c/bibref/XML-BLUEBERRY-REQ.js
discovery-api/js/w3c/bibref/XML-C14N.js
discovery-api/js/w3c/bibref/XML-C14N11.js
discovery-api/js/w3c/bibref/XML-C14N20.js
discovery-api/js/w3c/bibref/XML-CANONICAL-REQ.js
discovery-api/js/w3c/bibref/XML-ENCRYPTION-REQ.js
discovery-api/js/w3c/bibref/XML-ENTITY-NAMES.js
discovery-api/js/w3c/bibref/XML-EVENTS.js
discovery-api/js/w3c/bibref/XML-EXC-C14N.js
discovery-api/js/w3c/bibref/XML-FRAG-REQ.js
discovery-api/js/w3c/bibref/XML-FRAGID.js
discovery-api/js/w3c/bibref/XML-FRAGMENT.js
discovery-api/js/w3c/bibref/XML-I18N-BP.js
discovery-api/js/w3c/bibref/XML-ID-REQ.js
discovery-api/js/w3c/bibref/XML-ID.js
discovery-api/js/w3c/bibref/XML-INFOSET-RDFS.js
discovery-api/js/w3c/bibref/XML-INFOSET-REQ.js
discovery-api/js/w3c/bibref/XML-INFOSET.js
discovery-api/js/w3c/bibref/XML-Japanese.js
discovery-api/js/w3c/bibref/XML-LINK-STYLE.js
discovery-api/js/w3c/bibref/XML-MEDIA-TYPES.js
discovery-api/js/w3c/bibref/XML-MT.js
discovery-api/js/w3c/bibref/XML-NAMES.js
discovery-api/js/w3c/bibref/XML-NAMES11-REQ.js
discovery-api/js/w3c/bibref/XML-NAMES11.js
discovery-api/js/w3c/bibref/XML-PARSER-STAX.js
discovery-api/js/w3c/bibref/XML-SCHEMA-REQ.js
discovery-api/js/w3c/bibref/XML-STYLESHEET.js
discovery-api/js/w3c/bibref/XML10-4e.js
discovery-api/js/w3c/bibref/XML10.js
discovery-api/js/w3c/bibref/XML11.js
discovery-api/js/w3c/bibref/XML11SCHEMA10.js
discovery-api/js/w3c/bibref/XMLBASE.js
discovery-api/js/w3c/bibref/XMLDSIG-BESTPRACTICES.js
discovery-api/js/w3c/bibref/XMLDSIG-COMPLEXITY.js
discovery-api/js/w3c/bibref/XMLDSIG-CORE.js
discovery-api/js/w3c/bibref/XMLDSIG-CORE1.js
discovery-api/js/w3c/bibref/XMLDSIG-CORE2.js
discovery-api/js/w3c/bibref/XMLDSIG-GARCIA.js
discovery-api/js/w3c/bibref/XMLDSIG-PROPERTIES.js
discovery-api/js/w3c/bibref/XMLDSIG-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XMLDSIG-SEMANTICS.js
discovery-api/js/w3c/bibref/XMLDSIG-SIMPLIFY.js
discovery-api/js/w3c/bibref/XMLDSIG-THOMPSON.js
discovery-api/js/w3c/bibref/XMLDSIG-XPATH-FILTER2.js
discovery-api/js/w3c/bibref/XMLDSIG-XPATH.js
discovery-api/js/w3c/bibref/XMLDSIG2ED-TESTS.js
discovery-api/js/w3c/bibref/XMLENC-CORE.js
discovery-api/js/w3c/bibref/XMLENC-CORE1.js
discovery-api/js/w3c/bibref/XMLENC-DECRYPT.js
discovery-api/js/w3c/bibref/XMLHTTPREQUEST.js
discovery-api/js/w3c/bibref/XMLHTTPREQUEST2.js
discovery-api/js/w3c/bibref/XMLP-REQS.js
discovery-api/js/w3c/bibref/XMLP-SCENARIOS.js
discovery-api/js/w3c/bibref/XMLSCHEMA-0.js
discovery-api/js/w3c/bibref/XMLSCHEMA-1.js
discovery-api/js/w3c/bibref/XMLSCHEMA-11-REQ.js
discovery-api/js/w3c/bibref/XMLSCHEMA-2.js
discovery-api/js/w3c/bibref/XMLSCHEMA-FORMAL.js
discovery-api/js/w3c/bibref/XMLSCHEMA-GUIDE2VERSIONING.js
discovery-api/js/w3c/bibref/XMLSCHEMA-PATTERNS-ADVANCED.js
discovery-api/js/w3c/bibref/XMLSCHEMA-PATTERNS.js
discovery-api/js/w3c/bibref/XMLSCHEMA-REF.js
discovery-api/js/w3c/bibref/XMLSCHEMA11-1.js
discovery-api/js/w3c/bibref/XMLSCHEMA11-2.js
discovery-api/js/w3c/bibref/XMLSEC-ALGORITHMS.js
discovery-api/js/w3c/bibref/XMLSEC-DERIVEDKEYS.js
discovery-api/js/w3c/bibref/XMLSEC-GHCIPHERS.js
discovery-api/js/w3c/bibref/XMLSEC-NEXTSTEPS-2007.js
discovery-api/js/w3c/bibref/XMLSEC-RELAXNG.js
discovery-api/js/w3c/bibref/XMLSEC11-REQS.js
discovery-api/js/w3c/bibref/XMLSTYLE.js
discovery-api/js/w3c/bibref/XOP10.js
discovery-api/js/w3c/bibref/XOPINC-FAQ.js
discovery-api/js/w3c/bibref/XPATH-DATAMODEL.js
discovery-api/js/w3c/bibref/XPATH-FULL-TEXT-10-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XPATH-FULL-TEXT-10-USE-CASES.js
discovery-api/js/w3c/bibref/XPATH-FULL-TEXT-10.js
discovery-api/js/w3c/bibref/XPATH-FUNCTIONS.js
discovery-api/js/w3c/bibref/XPATH.js
discovery-api/js/w3c/bibref/XPATH20.js
discovery-api/js/w3c/bibref/XPATH20REQ.js
discovery-api/js/w3c/bibref/XPROC-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XPROC.js
discovery-api/js/w3c/bibref/XPTR-ELEMENT.js
discovery-api/js/w3c/bibref/XPTR-FRAMEWORK.js
discovery-api/js/w3c/bibref/XPTR-INFOSET-LIAISON.js
discovery-api/js/w3c/bibref/XPTR-POLICY.js
discovery-api/js/w3c/bibref/XPTR-REQ.js
discovery-api/js/w3c/bibref/XPTR-XMLNS.js
discovery-api/js/w3c/bibref/XPTR-XPOINTER-CR2001.js
discovery-api/js/w3c/bibref/XPTR-XPOINTER.js
discovery-api/js/w3c/bibref/XQUERY-11-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XQUERY-11-USE-CASES.js
discovery-api/js/w3c/bibref/XQUERY-11.js
discovery-api/js/w3c/bibref/XQUERY-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XQUERY-SEMANTICS.js
discovery-api/js/w3c/bibref/XQUERY-SX-10-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XQUERY-SX-10-USE-CASES.js
discovery-api/js/w3c/bibref/XQUERY-SX-10.js
discovery-api/js/w3c/bibref/XQUERY-UPDATE-10-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XQUERY-UPDATE-10-USE-CASES.js
discovery-api/js/w3c/bibref/XQUERY-UPDATE-10.js
discovery-api/js/w3c/bibref/XQUERY-USE-CASES.js
discovery-api/js/w3c/bibref/XQUERY-XPATH-PARSING.js
discovery-api/js/w3c/bibref/XQUERY.js
discovery-api/js/w3c/bibref/XQUERYX-11.js
discovery-api/js/w3c/bibref/XQUERYX.js
discovery-api/js/w3c/bibref/XQUPDATEUSECASES.js
discovery-api/js/w3c/bibref/XSL10.js
discovery-api/js/w3c/bibref/XSL11-REQ.js
discovery-api/js/w3c/bibref/XSL11.js
discovery-api/js/w3c/bibref/XSLFO20-REQ.js
discovery-api/js/w3c/bibref/XSLREQ.js
discovery-api/js/w3c/bibref/XSLT-XQUERY-SERIALIZATION.js
discovery-api/js/w3c/bibref/XSLT.js
discovery-api/js/w3c/bibref/XSLT11.js
discovery-api/js/w3c/bibref/XSLT11REQ.js
discovery-api/js/w3c/bibref/XSLT20.js
discovery-api/js/w3c/bibref/XSLT20REQ.js
discovery-api/js/w3c/bibref/XSLT21.js
discovery-api/js/w3c/bibref/YACC.js
discovery-api/js/w3c/bibref/ZEROCONF.js
discovery-api/js/w3c/bibref/ZHMARK.js
discovery-api/js/w3c/headers.js
discovery-api/js/w3c/profile-common.js
discovery-api/js/w3c/structure.js
discovery-api/js/w3c/style.js
discovery-api/js/w3c/templates/headers.html
discovery-api/js/w3c/unhtml5.js
discovery-api/tools/syntaxhighlighter/LGPL-LICENSE
discovery-api/tools/syntaxhighlighter/MIT-LICENSE
discovery-api/tools/syntaxhighlighter/css/shCore.css
discovery-api/tools/syntaxhighlighter/css/shCoreDefault.css
discovery-api/tools/syntaxhighlighter/css/shCoreDjango.css
discovery-api/tools/syntaxhighlighter/css/shCoreEclipse.css
discovery-api/tools/syntaxhighlighter/css/shCoreEmacs.css
discovery-api/tools/syntaxhighlighter/css/shCoreFadeToGrey.css
discovery-api/tools/syntaxhighlighter/css/shCoreMDUltra.css
discovery-api/tools/syntaxhighlighter/css/shCoreMidnight.css
discovery-api/tools/syntaxhighlighter/css/shCoreRDark.css
discovery-api/tools/syntaxhighlighter/css/shThemeDefault.css
discovery-api/tools/syntaxhighlighter/css/shThemeDjango.css
discovery-api/tools/syntaxhighlighter/css/shThemeEclipse.css
discovery-api/tools/syntaxhighlighter/css/shThemeEmacs.css
discovery-api/tools/syntaxhighlighter/css/shThemeFadeToGrey.css
discovery-api/tools/syntaxhighlighter/css/shThemeMDUltra.css
discovery-api/tools/syntaxhighlighter/css/shThemeMidnight.css
discovery-api/tools/syntaxhighlighter/css/shThemeRDark.css
discovery-api/tools/syntaxhighlighter/js/shAutoloader.js
discovery-api/tools/syntaxhighlighter/js/shBrushAS3.js
discovery-api/tools/syntaxhighlighter/js/shBrushAppleScript.js
discovery-api/tools/syntaxhighlighter/js/shBrushBash.js
discovery-api/tools/syntaxhighlighter/js/shBrushCSharp.js
discovery-api/tools/syntaxhighlighter/js/shBrushColdFusion.js
discovery-api/tools/syntaxhighlighter/js/shBrushCpp.js
discovery-api/tools/syntaxhighlighter/js/shBrushCss.js
discovery-api/tools/syntaxhighlighter/js/shBrushDelphi.js
discovery-api/tools/syntaxhighlighter/js/shBrushDiff.js
discovery-api/tools/syntaxhighlighter/js/shBrushErlang.js
discovery-api/tools/syntaxhighlighter/js/shBrushGroovy.js
discovery-api/tools/syntaxhighlighter/js/shBrushJScript.js
discovery-api/tools/syntaxhighlighter/js/shBrushJava.js
discovery-api/tools/syntaxhighlighter/js/shBrushJavaFX.js
discovery-api/tools/syntaxhighlighter/js/shBrushPerl.js
discovery-api/tools/syntaxhighlighter/js/shBrushPhp.js
discovery-api/tools/syntaxhighlighter/js/shBrushPlain.js
discovery-api/tools/syntaxhighlighter/js/shBrushPowerShell.js
discovery-api/tools/syntaxhighlighter/js/shBrushPython.js
discovery-api/tools/syntaxhighlighter/js/shBrushRuby.js
discovery-api/tools/syntaxhighlighter/js/shBrushSass.js
discovery-api/tools/syntaxhighlighter/js/shBrushScala.js
discovery-api/tools/syntaxhighlighter/js/shBrushSql.js
discovery-api/tools/syntaxhighlighter/js/shBrushVb.js
discovery-api/tools/syntaxhighlighter/js/shBrushXml.js
discovery-api/tools/syntaxhighlighter/js/shCore.js
discovery-api/tools/syntaxhighlighter/js/shLegacy.js
     1.1 --- a/api-design/index.html	Wed Aug 22 15:45:40 2012 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,105 +0,0 @@
     1.4 -<!DOCTYPE html>
     1.5 -<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
     1.6 -  <head>
     1.7 -    <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
     1.8 -    <title>API Design Best Practices</title>
     1.9 -    <script class='remove'>
    1.10 -      var respecConfig = {
    1.11 -          specStatus: "ED",
    1.12 -          shortName:  "api-design",
    1.13 -          editors: [
    1.14 -                {   name:       "Robin Berjon",
    1.15 -                    url:        "http://berjon.com/",
    1.16 -                    company:    "Robineko",
    1.17 -                    companyURL: "http://robineko.com/" }
    1.18 -          ],
    1.19 -          edDraftURI:   "http://w3c-test.org/dap/api-design/",
    1.20 -          copyrightStart: 2011,
    1.21 -          noIDLIn:      true,
    1.22 -          // wg:           "Web Applications (WebApps) Working Group",
    1.23 -          // wgURI:        "http://www.w3.org/2008/webapps/",
    1.24 -          // wgPublicList: "public-webapps",
    1.25 -          // wgPatentURI:  "http://www.w3.org/2004/01/pp-impl/42538/status",
    1.26 -          wg:           "Device APIs Working Group",
    1.27 -          wgURI:        "http://www.w3.org/2009/dap/",
    1.28 -          wgPublicList: "public-device-apis",
    1.29 -          wgPatentURI:  "http://www.w3.org/2004/01/pp-impl/43696/status",
    1.30 -      };
    1.31 -    </script>
    1.32 -    <script src='http://respec.specifiction.com/js/profiles/w3c-common.js' class='remove'></script>
    1.33 -  </head>
    1.34 -  <body>
    1.35 -    <section id='abstract'>
    1.36 -      <p>
    1.37 -        This document captures best practices in designing APIs that fit well into the Web platform as
    1.38 -        a whole, using WebIDL [[!WEBIDL]].
    1.39 -      </p>
    1.40 -    </section>
    1.41 -    <section id='sotd'>
    1.42 -      <p>
    1.43 -        As it currently stands, this document is nothing more than a proposal from its editor, with no
    1.44 -        backing implied or otherwise from any other party.
    1.45 -      </p>
    1.46 -    </section>
    1.47 -    <section>
    1.48 -      <h2>Introduction</h2>
    1.49 -      <p>
    1.50 -        Over a relatively short period of time the number of different APIs being created for use on the
    1.51 -        Web has grown at a sustained pace. In working on these interfaces, many in the community discuss
    1.52 -        the benefits of certain approaches over others and reach agreement as to best practices when
    1.53 -        facing a given problem.
    1.54 -      </p>
    1.55 -      <p>
    1.56 -        Keeping track of all these gems is however difficult given the volume of work being carried on
    1.57 -        in parallel and the sometimes disjointed nature of the groups involved. As a result, it can take
    1.58 -        a long while and many arguments repeated almost identically before a discovered best practice
    1.59 -        becomes common.
    1.60 -      </p>
    1.61 -      <p>
    1.62 -        The goal of this document is to capture such ideas as they appear and accrete them over time so as
    1.63 -        to constitute a repository of knowledge on this topic. As a guide it does not however endeavour to
    1.64 -        supplant editors' brains in making decisions as to how to design their APIs, and consequently one
    1.65 -        must keep in mind that the reasoning behind a specific recommendation is often more important than
    1.66 -        its result. Furthermore, in some cases there may not be a single consensual best approach, and 
    1.67 -        editors will need to understand the tradeoffs involved in order to pick what works for them amongst
    1.68 -        a set of options.
    1.69 -      </p>
    1.70 -    </section>
    1.71 -    <section>
    1.72 -      <h2>WebIDL Legacy Features</h2>
    1.73 -      <p>
    1.74 -        ...
    1.75 -      </p>
    1.76 -    </section>
    1.77 -    <section>
    1.78 -      <h2>Exceptions</h2>
    1.79 -      <p>
    1.80 -        ...
    1.81 -      </p>
    1.82 -    </section>
    1.83 -    <section>
    1.84 -      <h2>When to use NoInterfaceObject</h2>
    1.85 -      <p>
    1.86 -        ...
    1.87 -      </p>
    1.88 -    </section>
    1.89 -    <section>
    1.90 -      <h2>Using Dictionaries</h2>
    1.91 -      <p>
    1.92 -        ...
    1.93 -      </p>
    1.94 -    </section>
    1.95 -    <section>
    1.96 -      <h2>Specifying Callbacks</h2>
    1.97 -      <p>
    1.98 -        ...
    1.99 -      </p>
   1.100 -    </section>
   1.101 -    <section class='appendix'>
   1.102 -      <h2>Acknowledgements</h2>
   1.103 -      <p>
   1.104 -        Many thanks to Cameron McCormack, Marcos Càceres, and Andreas Gal for their input.
   1.105 -      </p>
   1.106 -    </section>
   1.107 -  </body>
   1.108 -</html>
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/discovery-api/FPWD.html	Wed Aug 22 16:00:54 2012 +0200
     2.3 @@ -0,0 +1,1797 @@
     2.4 +<!DOCTYPE html>
     2.5 +<html lang="en" dir="ltr">
     2.6 +<head>
     2.7 +    <title>Networked Service Discovery and Messaging</title>
     2.8 +    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
     2.9 +    
    2.10 +
    2.11 +    
    2.12 +    <style type="text/css">
    2.13 +      /* Custom CSS optimizations (Richard Tibbett) */
    2.14 +
    2.15 +      /* Add better spacing to sections */
    2.16 +      section, .section { margin-bottom: 2em; }
    2.17 +
    2.18 +      /* Reduce note & issue render size */
    2.19 +      .note, .issue { font-size:0.8em; }
    2.20 +
    2.21 +      /* Add addition spacing to <ol> and <ul> for rule definition */
    2.22 +      ol.rule li, ul.rule li { padding:0.6em; }
    2.23 +
    2.24 +      pre.widl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; position: relative; }
    2.25 +      pre.widl :link, pre.widl :visited { color: #000; background: transparent; }
    2.26 +      pre.widl:before { content: "IDL"; font: bold small sans-serif; padding: 0.5em; background: white; position: absolute; top: 0; margin: -1px 0 0 -4em; width: 1.5em; border: thin solid; border-radius: 0 0 0 0.5em }
    2.27 +
    2.28 +      div.example { border: solid thin red; background: #F7DFE5; color: black; padding: 0.5em 1em; position: relative; margin: 1em 0 1em 4.6em; width: auto; }
    2.29 +      div.example:before { content: "EXAMPLE"; font: bold small sans-serif; padding: 0.5em; background: red; color: white; position: absolute; top: 0; margin: -1px 0 0 -7.6em; width: 5em; border: thin solid red; border-radius: 0 0 0 0.5em }
    2.30 +
    2.31 +      dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #DDFFDD; }
    2.32 +      hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
    2.33 +      dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
    2.34 +      dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
    2.35 +      dl.domintro dd p { margin: 0.5em 0; }
    2.36 +      dl.domintro code {font-size: inherit; font-style: italic; }
    2.37 +      dl.domintro:before { display: table; margin: -1em -0.5em 0.5em auto; width: auto; content: 'This box is non-normative. Implementation requirements are given below this box.'; color: red; border: solid 2px; background: white; padding: 0 0.25em; }
    2.38 +    </style>
    2.39 +  <style>/*****************************************************************
    2.40 + * ReSpec 3 CSS
    2.41 + * Robin Berjon - http://berjon.com/
    2.42 + *****************************************************************/
    2.43 +
    2.44 +/* --- INLINES --- */
    2.45 +em.rfc2119 { 
    2.46 +    text-transform:     lowercase;
    2.47 +    font-variant:       small-caps;
    2.48 +    font-style:         normal;
    2.49 +    color:              #900;
    2.50 +}
    2.51 +
    2.52 +h1 acronym, h2 acronym, h3 acronym, h4 acronym, h5 acronym, h6 acronym, a acronym,
    2.53 +h1 abbr, h2 abbr, h3 abbr, h4 abbr, h5 abbr, h6 abbr, a abbr {
    2.54 +    border: none;
    2.55 +}
    2.56 +
    2.57 +dfn {
    2.58 +    font-weight:    bold;
    2.59 +}
    2.60 +
    2.61 +a.internalDFN {
    2.62 +    color:  inherit;
    2.63 +    border-bottom:  1px solid #99c;
    2.64 +    text-decoration:    none;
    2.65 +}
    2.66 +
    2.67 +a.externalDFN {
    2.68 +    color:  inherit;
    2.69 +    border-bottom:  1px dotted #ccc;
    2.70 +    text-decoration:    none;
    2.71 +}
    2.72 +
    2.73 +a.bibref {
    2.74 +    text-decoration:    none;
    2.75 +}
    2.76 +
    2.77 +cite .bibref {
    2.78 +    font-style: normal;
    2.79 +}
    2.80 +
    2.81 +code {
    2.82 +    color:  #ff4500;
    2.83 +}
    2.84 +
    2.85 +
    2.86 +/* --- --- */
    2.87 +ol.algorithm { counter-reset:numsection; list-style-type: none; }
    2.88 +ol.algorithm li { margin: 0.5em 0; }
    2.89 +ol.algorithm li:before { font-weight: bold; counter-increment: numsection; content: counters(numsection, ".") ") "; }
    2.90 +
    2.91 +/* --- TOC --- */
    2.92 +.toc a, .tof a {
    2.93 +    text-decoration:    none;
    2.94 +}
    2.95 +
    2.96 +a .secno, a .figno {
    2.97 +    color:  #000;
    2.98 +}
    2.99 +
   2.100 +ul.tof, ol.tof {
   2.101 +    list-style: none outside none;
   2.102 +}
   2.103 +
   2.104 +.caption {
   2.105 +    margin-top: 0.5em;
   2.106 +    font-style:   italic;
   2.107 +}
   2.108 +
   2.109 +/* --- TABLE --- */
   2.110 +table.simple {
   2.111 +    border-spacing: 0;
   2.112 +    border-collapse:    collapse;
   2.113 +    border-bottom:  3px solid #005a9c;
   2.114 +}
   2.115 +
   2.116 +.simple th {
   2.117 +    background: #005a9c;
   2.118 +    color:  #fff;
   2.119 +    padding:    3px 5px;
   2.120 +    text-align: left;
   2.121 +}
   2.122 +
   2.123 +.simple th[scope="row"] {
   2.124 +    background: inherit;
   2.125 +    color:  inherit;
   2.126 +    border-top: 1px solid #ddd;
   2.127 +}
   2.128 +
   2.129 +.simple td {
   2.130 +    padding:    3px 10px;
   2.131 +    border-top: 1px solid #ddd;
   2.132 +}
   2.133 +
   2.134 +.simple tr:nth-child(even) {
   2.135 +    background: #f0f6ff;
   2.136 +}
   2.137 +
   2.138 +/* --- DL --- */
   2.139 +.section dd > p:first-child {
   2.140 +    margin-top: 0;
   2.141 +}
   2.142 +
   2.143 +.section dd > p:last-child {
   2.144 +    margin-bottom: 0;
   2.145 +}
   2.146 +
   2.147 +.section dd {
   2.148 +    margin-bottom:  1em;
   2.149 +}
   2.150 +
   2.151 +.section dl.attrs dd, .section dl.eldef dd {
   2.152 +    margin-bottom:  0;
   2.153 +}
   2.154 +</style><style>/* --- ISSUES/NOTES --- */
   2.155 +div.issue-title, div.note-title {
   2.156 +    padding-right:  1em;
   2.157 +    min-width: 7.5em;
   2.158 +    color: #b9ab2d;
   2.159 +}
   2.160 +div.issue-title { color: #e05252; }
   2.161 +div.note-title { color: #52e052; }
   2.162 +div.issue-title span, div.note-title span {
   2.163 +    text-transform: uppercase;
   2.164 +}
   2.165 +div.note, div.issue {
   2.166 +    margin-top: 1em;
   2.167 +    margin-bottom: 1em;
   2.168 +}
   2.169 +.note > p:first-child, .issue > p:first-child { margin-top: 0 }
   2.170 +.issue, .note {
   2.171 +    padding: .5em;
   2.172 +    border-left-width: .5em;
   2.173 +    border-left-style: solid;
   2.174 +}
   2.175 +div.issue, div.note {
   2.176 +    padding: 0.5em;
   2.177 +    margin: 1em 0;
   2.178 +    position: relative;
   2.179 +    clear: both;
   2.180 +}
   2.181 +span.note, span.issue { padding: .1em .5em .15em; }
   2.182 +
   2.183 +.issue {
   2.184 +    border-color: #e05252;
   2.185 +    background: #fbe9e9;
   2.186 +}
   2.187 +.note {
   2.188 +    border-color: #52e052;
   2.189 +    background: #e9fbe9;
   2.190 +}
   2.191 +
   2.192 +
   2.193 +</style><style>/* HIGHLIGHTS */
   2.194 +code.prettyprint {
   2.195 +    color:  inherit;
   2.196 +}
   2.197 +
   2.198 +/* this from google-code-prettify */
   2.199 +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
   2.200 +</style><link href="http://www.w3.org/StyleSheets/TR/W3C-WD" rel="stylesheet"><!--[if lt IE 9]><script src='undefined://www.w3.org/2008/site/js/html5shiv.js'></script><![endif]--></head>
   2.201 +
   2.202 +  <body><div class="head">
   2.203 +  <p>
   2.204 +    
   2.205 +      <a href="http://www.w3.org/"><img src="http://www.w3.org/Icons/w3c_home" alt="W3C" height="48" width="72"></a>
   2.206 +    
   2.207 +  </p>
   2.208 +  <h1 class="title" id="title">Networked Service Discovery and Messaging</h1>
   2.209 +  
   2.210 +  <h2 id="w3c-working-draft-07-august-2012"><abbr title="World Wide Web Consortium">W3C</abbr> Working Draft 07 August 2012</h2>
   2.211 +  <dl>
   2.212 +    
   2.213 +      <dt>This version:</dt>
   2.214 +      <dd><a href="http://www.w3.org/TR/2012/WD-discovery-api-20120807/">http://www.w3.org/TR/2012/WD-discovery-api-20120807/</a></dd>
   2.215 +      <dt>Latest published version:</dt>
   2.216 +      <dd><a href="http://www.w3.org/TR/discovery-api/">http://www.w3.org/TR/discovery-api/</a></dd>
   2.217 +    
   2.218 +    
   2.219 +      <dt>Latest editor's draft:</dt>
   2.220 +      <dd><a href="http://w3c-test.org/dap/discovery-api/">http://w3c-test.org/dap/discovery-api/</a></dd>
   2.221 +    
   2.222 +    
   2.223 +    
   2.224 +    
   2.225 +    
   2.226 +    
   2.227 +    <dt>Editors:</dt>
   2.228 +    <dd><span>Rich Tibbett</span>, <a href="http://opera.com/">Opera Software ASA</a></dd>
   2.229 +<dd><span>Clarke Stevens</span>, <a href="http://cablelabs.com/">CableLabs</a></dd>
   2.230 +
   2.231 +    
   2.232 +  </dl>
   2.233 +  
   2.234 +  
   2.235 +  
   2.236 +  
   2.237 +    
   2.238 +      <p class="copyright">
   2.239 +        <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 
   2.240 +        2012
   2.241 +        
   2.242 +        <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> 
   2.243 +        (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>,
   2.244 +        <a href="http://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>,
   2.245 +        <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved.
   2.246 +        <abbr title="World Wide Web Consortium">W3C</abbr> <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
   2.247 +        <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and
   2.248 +        <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.
   2.249 +      </p>
   2.250 +    
   2.251 +  
   2.252 +  <hr>
   2.253 +</div>
   2.254 +    <section class="introductory" id="abstract"><h2>Abstract</h2>
   2.255 +      <p>
   2.256 +        This specification defines a mechanism for an HTML document to discover and subsequently communicate with <abbr title="Hypertext Transfer Protocol">HTTP</abbr>-based services
   2.257 +        advertised via common discovery protocols within a user's network.
   2.258 +      </p>
   2.259 +    </section><section id="sotd" class="introductory"><h2>Status of This Document</h2>
   2.260 +  
   2.261 +    
   2.262 +      
   2.263 +        <p>
   2.264 +          <em>This section describes the status of this document at the time of its publication. Other
   2.265 +          documents may supersede this document. A list of current <abbr title="World Wide Web Consortium">W3C</abbr> publications and the latest revision
   2.266 +          of this technical report can be found in the <a href="http://www.w3.org/TR/"><abbr title="World Wide Web Consortium">W3C</abbr> technical reports
   2.267 +          index</a> at http://www.w3.org/TR/.</em>
   2.268 +        </p>
   2.269 +        
   2.270 +      <p>
   2.271 +        This document represents the early consensus of the group on the scope and features of the proposed
   2.272 +        <abbr title="Application Programming Interface">API</abbr>.
   2.273 +      </p>
   2.274 +    
   2.275 +        <p>
   2.276 +          This document was published by the <a href="http://www.w3.org/2009/dap/">Device APIs and Policy Working Group</a> as a First Public Working Draft.
   2.277 +          
   2.278 +            This document is intended to become a <abbr title="World Wide Web Consortium">W3C</abbr> Recommendation.
   2.279 +          
   2.280 +          If you wish to make comments regarding this document, please send them to 
   2.281 +          <a href="mailto:public-device-apis@w3.org">public-device-apis@w3.org</a> 
   2.282 +          (<a href="mailto:public-device-apis-request@w3.org?subject=subscribe">subscribe</a>,
   2.283 +          <a href="http://lists.w3.org/Archives/Public/public-device-apis/">archives</a>).
   2.284 +          
   2.285 +          
   2.286 +          All feedback is welcome.
   2.287 +        </p>
   2.288 +        
   2.289 +          <p>
   2.290 +            Publication as a Working Draft does not imply endorsement by the <abbr title="World Wide Web Consortium">W3C</abbr> Membership.
   2.291 +            This is a draft document and may be updated, replaced or obsoleted by other documents at 
   2.292 +            any time. It is inappropriate to cite this document as other than work in progress.
   2.293 +          </p>
   2.294 +        
   2.295 +        
   2.296 +        <p>
   2.297 +          
   2.298 +            This document was produced by a group operating under the 
   2.299 +            <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February 2004 <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>.
   2.300 +          
   2.301 +          
   2.302 +          
   2.303 +            
   2.304 +              <abbr title="World Wide Web Consortium">W3C</abbr> maintains a <a href="http://www.w3.org/2004/01/pp-impl/43696/status" rel="disclosure">public list of any patent disclosures</a> 
   2.305 +            
   2.306 +            made in connection with the deliverables of the group; that page also includes instructions for 
   2.307 +            disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains
   2.308 +            <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential Claim(s)</a> must disclose the
   2.309 +            information in accordance with <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section
   2.310 +            6 of the <abbr title="World Wide Web Consortium">W3C</abbr> Patent Policy</a>.
   2.311 +          
   2.312 +          
   2.313 +        </p>
   2.314 +        
   2.315 +      
   2.316 +    
   2.317 +  
   2.318 +</section><section id="toc"><h2 class="introductory">Table of Contents</h2><ul class="toc"><li class="tocline"><a class="tocxref" href="#introduction"><span class="secno">1. </span>Introduction</a></li><li class="tocline"><a class="tocxref" href="#conformance"><span class="secno">2. </span>Conformance</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#dependencies"><span class="secno">2.1 </span>Dependencies</a></li></ul></li><li class="tocline"><a class="tocxref" href="#terminology"><span class="secno">3. </span>Terminology</a></li><li class="tocline"><a class="tocxref" href="#requesting-networked-services"><span class="secno">4. </span>Requesting networked services</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#methods"><span class="secno">4.1 </span>Methods</a></li><li class="tocline"><a class="tocxref" href="#error-handling"><span class="secno">4.2 </span>Error Handling</a></li></ul></li><li class="tocline"><a class="tocxref" href="#obtaining-networked-services"><span class="secno">5. </span>Obtaining networked services</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes"><span class="secno">5.1 </span>Attributes</a></li><li class="tocline"><a class="tocxref" href="#methods-1"><span class="secno">5.2 </span>Methods</a></li><li class="tocline"><a class="tocxref" href="#events"><span class="secno">5.3 </span>Events</a></li></ul></li><li class="tocline"><a class="tocxref" href="#communicating-with-a-networked-service"><span class="secno">6. </span>Communicating with a networked service</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes-1"><span class="secno">6.1 </span>Attributes</a></li><li class="tocline"><a class="tocxref" href="#states"><span class="secno">6.2 </span>States</a></li><li class="tocline"><a class="tocxref" href="#events-1"><span class="secno">6.3 </span>Events</a></li></ul></li><li class="tocline"><a class="tocxref" href="#service-discovery"><span class="secno">7. </span>Service Discovery</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#zeroconf-mdns-dns-sd"><span class="secno">7.1 </span>Zeroconf (<abbr title="Multicast DNS">mDNS</abbr> + <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr>)</a></li><li class="tocline"><a class="tocxref" href="#universal-plug-and-play-upnp"><span class="secno">7.2 </span>Universal Plug-and-Play (<abbr title="Universal Plug-and-Play">UPnP</abbr>)</a></li><li class="tocline"><a class="tocxref" href="#network-topology-monitoring"><span class="secno">7.3 </span>Network Topology Monitoring</a></li></ul></li><li class="tocline"><a class="tocxref" href="#garbage-collection"><span class="secno">8. </span>Garbage collection</a></li><li class="tocline"><a class="tocxref" href="#use-cases-and-requirements"><span class="secno">9. </span>Use Cases and Requirements</a></li><li class="tocline"><a class="tocxref" href="#examples"><span class="secno">A. </span>Examples</a></li><li class="tocline"><a class="tocxref" href="#acknowledgements"><span class="secno">B. </span>Acknowledgements</a></li><li class="tocline"><a class="tocxref" href="#references"><span class="secno">C. </span>References</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#normative-references"><span class="secno">C.1 </span>Normative references</a></li><li class="tocline"><a class="tocxref" href="#informative-references"><span class="secno">C.2 </span>Informative references</a></li></ul></li></ul></section>
   2.319 +
   2.320 +    
   2.321 +
   2.322 +    <section id="introduction" class="informative">
   2.323 +      <!--OddPage--><h2><span class="secno">1. </span>Introduction</h2><p><em>This section is non-normative.</em></p>
   2.324 +
   2.325 +      <p>To enable Web pages to connect and communicate with Local-networked Services provided over <abbr title="Hypertext Transfer Protocol">HTTP</abbr>, this specification introduces the
   2.326 +      <a href="#navigatornetworkservice"><code>NavigatorNetworkService</code></a> interface.</p>
   2.327 +
   2.328 +      <p>
   2.329 +         Using this <abbr title="Application Programming Interface">API</abbr> consists of requesting a well-known service type, known by developers and advertised by Local-networked Devices. User authorization, where the user connects the web page to one or more discovered services,
   2.330 +         is expected before the web page is able to interact with any Local-networked Services.
   2.331 +      </p>
   2.332 +
   2.333 +      <p>
   2.334 +         A web page creates a request to obtain connectivity to services running in the network by specifying a well-known discovery service type that it wishes to interact with.
   2.335 +      </p>
   2.336 +
   2.337 +      <p>
   2.338 +         The user agent, having captured all advertised services on the network from the Service Discovery mechanisms included in this recommendation, attempts to match
   2.339 +      the requested service type to a discovered service according to the processing described herein.
   2.340 +      </p>
   2.341 +
   2.342 +      <p>
   2.343 +          If a service connectivity request is successful then the Web page is provided with the necessary information to communicate with the authorized Local-networked Service.
   2.344 +          If the request fails then the Web page will receive an error callback containing an error code describing the cause of Local-networked Service connectivity failure.
   2.345 +      </p>
   2.346 +
   2.347 +      <p>
   2.348 +         Once connected to a Local-networked Service the Web page can send requests and receive responses to the Local-networked Service via the messaging format and appropriate channel inferred from the service type
   2.349 +         authorized via the provided <abbr title="Application Programming Interface">API</abbr>.
   2.350 +         The Web page, once connected, can also receive service-pushed events, in the messaging format supported by the Local-networked Device, if such event subscription functionality is provided by the
   2.351 +         connected Local-networked Service.
   2.352 +      </p>
   2.353 +
   2.354 +      <div class="example">
   2.355 +       <p>Example of requesting a <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr> advertised service:</p>
   2.356 +       <hr>
   2.357 +       <pre class="highlight prettyprint"><span class="kwd">function</span><span class="pln"> showServices</span><span class="pun">(</span><span class="pln"> services </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   2.358 +  </span><span class="com">// Show a list of all the services provided to the web page</span><span class="pln">
   2.359 +  </span><span class="kwd">for</span><span class="pun">(</span><span class="kwd">var</span><span class="pln"> i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> l </span><span class="pun">=</span><span class="pln"> services</span><span class="pun">.</span><span class="pln">length</span><span class="pun">;</span><span class="pln"> i </span><span class="pun">&lt;</span><span class="pln"> l</span><span class="pun">;</span><span class="pln"> i</span><span class="pun">++)</span><span class="pln"> console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="pln"> services</span><span class="pun">[</span><span class="pln">i</span><span class="pun">].</span><span class="pln">name </span><span class="pun">);</span><span class="pln">
   2.360 +</span><span class="pun">}</span><span class="pln">
   2.361 +
   2.362 +navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">(</span><span class="str">'zeroconf:_boxee-jsonrpc._tcp'</span><span class="pun">,</span><span class="pln"> showServices</span><span class="pun">);</span></pre>
   2.363 +      </div>
   2.364 +
   2.365 +      <div class="example">
   2.366 +        <p>Example of requesting a <abbr title="Universal Plug-and-Play">UPnP</abbr> advertised service, also handling error conditions:</p>
   2.367 +        <hr>
   2.368 +        <pre class="highlight prettyprint"><span class="kwd">function</span><span class="pln"> showServices</span><span class="pun">(</span><span class="pln"> services </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   2.369 +  </span><span class="com">// Show a list of all the services provided to the web page</span><span class="pln">
   2.370 +  </span><span class="kwd">for</span><span class="pun">(</span><span class="kwd">var</span><span class="pln"> i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> l </span><span class="pun">=</span><span class="pln"> services</span><span class="pun">.</span><span class="pln">length</span><span class="pun">;</span><span class="pln"> i </span><span class="pun">&lt;</span><span class="pln"> l</span><span class="pun">;</span><span class="pln"> i</span><span class="pun">++)</span><span class="pln"> console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="pln"> services</span><span class="pun">[</span><span class="pln">i</span><span class="pun">].</span><span class="pln">name </span><span class="pun">);</span><span class="pln">
   2.371 +</span><span class="pun">}</span><span class="pln">
   2.372 +
   2.373 +</span><span class="kwd">function</span><span class="pln"> error</span><span class="pun">(</span><span class="pln"> e </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   2.374 +  console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="pln"> </span><span class="str">"Error occurred: "</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> e</span><span class="pun">.</span><span class="pln">code </span><span class="pun">);</span><span class="pln">
   2.375 +</span><span class="pun">}</span><span class="pln">
   2.376 +
   2.377 +navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">(</span><span class="str">'upnp:urn:schemas-upnp-org:service:ContentDirectory:1'</span><span class="pun">,</span><span class="pln"> showServices</span><span class="pun">,</span><span class="pln"> error</span><span class="pun">);</span></pre>
   2.378 +      </div>
   2.379 +
   2.380 +      <div class="example">
   2.381 +        <p>Example of requesting either a <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr> or <abbr title="Universal Plug-and-Play">UPnP</abbr> advertised service:</p>
   2.382 +        <hr>
   2.383 +        <pre class="highlight prettyprint"><span class="kwd">function</span><span class="pln"> showServices</span><span class="pun">(</span><span class="pln"> services </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   2.384 +  </span><span class="com">// Show a list of all the services provided to the web page (+ service type)</span><span class="pln">
   2.385 +  </span><span class="kwd">for</span><span class="pun">(</span><span class="kwd">var</span><span class="pln"> i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> l </span><span class="pun">=</span><span class="pln"> services</span><span class="pun">.</span><span class="pln">length</span><span class="pun">;</span><span class="pln"> i </span><span class="pun">&lt;</span><span class="pln"> l</span><span class="pun">;</span><span class="pln"> i</span><span class="pun">++)</span><span class="pln">
   2.386 +     console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="pln"> services</span><span class="pun">[</span><span class="pln">i</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">'('</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="pln">i</span><span class="pun">].</span><span class="pln">type </span><span class="pun">+</span><span class="pln"> </span><span class="str">')'</span><span class="pln"> </span><span class="pun">);</span><span class="pln">
   2.387 +</span><span class="pun">}</span><span class="pln">
   2.388 +
   2.389 +navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">([</span><span class="pln">
   2.390 +  </span><span class="str">'zeroconf:_boxee-jsonrpc._tcp'</span><span class="pun">,</span><span class="pln">
   2.391 +  </span><span class="str">'upnp:urn:schemas-upnp-org:service:ContentDirectory:1'</span><span class="pln">
   2.392 +</span><span class="pun">],</span><span class="pln"> showServices</span><span class="pun">);</span></pre>
   2.393 +      </div>
   2.394 +
   2.395 +      <p>For more detailed examples see the <a href="#examples">Examples</a> section.
   2.396 +    </p></section>
   2.397 +
   2.398 +    <section id="conformance"><!--OddPage--><h2><span class="secno">2. </span>Conformance</h2>
   2.399 +<p>
   2.400 +  As well as sections marked as non-normative, all authoring guidelines, diagrams, examples,
   2.401 +  and notes in this specification are non-normative. Everything else in this specification is
   2.402 +  normative.
   2.403 +</p>
   2.404 +<p>
   2.405 +  The key words <em title="must" class="rfc2119">must</em>, <em title="must not" class="rfc2119">must not</em>, <em title="required" class="rfc2119">required</em>, <em title="should" class="rfc2119">should</em>, <em title="should not" class="rfc2119">should not</em>, <em title="recommended" class="rfc2119">recommended</em>, <em title="may" class="rfc2119">may</em>,
   2.406 +  and <em title="optional" class="rfc2119">optional</em> in this specification are to be interpreted as described in [<cite><a href="#bib-RFC2119" class="bibref">RFC2119</a></cite>].
   2.407 +</p>
   2.408 +
   2.409 +
   2.410 +     <p>Requirements phrased in the imperative as part of algorithms (such as "strip any leading space characters" or "return false and abort these steps") are to be interpreted with the
   2.411 +     meaning of the key word ("must", "should", "may", etc) used in introducing the algorithm.</p>
   2.412 +
   2.413 +     <p>
   2.414 +      Some conformance requirements are phrased as requirements on attributes, methods or objects. Such requirements are to be interpreted as requirements on user agents.
   2.415 +     </p>
   2.416 +
   2.417 +     <p>
   2.418 +      Conformance requirements phrased as algorithms or specific steps may be implemented in any manner, so long as the end result is equivalent. (In particular, the algorithms defined in
   2.419 +      this specification are intended to be easy to follow, and not intended to be performant.)
   2.420 +     </p>
   2.421 +
   2.422 +     <p>
   2.423 +      The only conformance class defined by this specification is a <dfn id="dfn-user-agent">user agent</dfn>.
   2.424 +     </p>
   2.425 +
   2.426 +     <p>
   2.427 +      User agents may impose implementation-specific limits on otherwise unconstrained inputs, e.g. to prevent denial of service attacks, to guard against running out of memory, or to work
   2.428 +      around platform-specific limitations.
   2.429 +     </p>
   2.430 +
   2.431 +     <p>
   2.432 +      When support for a feature is disabled (e.g. as an emergency measure to mitigate a security problem, or to aid in development, or for performance reasons), user agents must act as if
   2.433 +      they had no support for the feature whatsoever, and as if the feature was not mentioned in this specification. For example, if a particular feature is accessed via an attribute in a Web
   2.434 +      IDL interface, the attribute itself would be omitted from the objects that implement that interface - leaving the attribute on the object but making it return null or throw an exception
   2.435 +      is insufficient.
   2.436 +     </p>
   2.437 +
   2.438 +      <section id="dependencies">
   2.439 +         <h3><span class="secno">2.1 </span>Dependencies</h3>
   2.440 +
   2.441 +         This specification relies on several other underlying specifications.
   2.442 +
   2.443 +         <dl>
   2.444 +            <dt>HTML</dt>
   2.445 +            <dd>Many fundamental concepts from HTML are used by this specification. [<cite><a href="#bib-HTML5" class="bibref">HTML5</a></cite>]</dd>
   2.446 +            <dt>WebIDL</dt>
   2.447 +            <dd>The IDL blocks in this specification use the semantics of the WebIDL specification. [<cite><a href="#bib-WEBIDL" class="bibref">WEBIDL</a></cite>]</dd>
   2.448 +         </dl>
   2.449 +      </section>
   2.450 +    </section>
   2.451 +
   2.452 +    <section id="terminology">
   2.453 +      <!--OddPage--><h2><span class="secno">3. </span>Terminology</h2>
   2.454 +
   2.455 +      <p>
   2.456 +         The construction "a <code>Foo</code> object", where <code>Foo</code> is actually an interface, is sometimes used instead of the more accurate "an object implementing the interface <code>Foo</code>".
   2.457 +      </p>
   2.458 +
   2.459 +      <p>
   2.460 +         The term DOM is used to refer to the <abbr title="Application Programming Interface">API</abbr> set made available to scripts in Web applications, and does not necessarily imply the existence of an actual <code>Document</code> object or of any
   2.461 +         other <code>Node</code> objects as defined in the DOM Core specifications. [<cite><a href="#bib-DOM4" class="bibref">DOM4</a></cite>]
   2.462 +      </p>
   2.463 +
   2.464 +      <p>
   2.465 +         An IDL attribute is said to be <em>getting</em> when its value is being retrieved (e.g. by author script), and is said to be <em>setting</em> when a new value is assigned to it.
   2.466 +      </p>
   2.467 +
   2.468 +      <p>
   2.469 +        A <dfn id="dfn-valid-service-type">valid service type</dfn> is a string that begins with <code>upnp:</code> or <code>zeroconf:</code> followed by one or more characters in the ranges U+0021, U+0023 to U+0027, U+002A to U+002B, U+002D to U+002E, U+0030 to U+0039, U+0041 to U+005A, U+005E to U+007E.
   2.470 +      </p>
   2.471 +
   2.472 +      <p>
   2.473 +        A <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> provided in the <code>type</code> attribute of the <code>getNetworkServices()</code> method will be matched against the services currently contained in the <a class="internalDFN" href="#dfn-list-of-available-service-records">list of available service records</a> according to the algorithms defined in this specification.
   2.474 +      </p>
   2.475 +    </section>
   2.476 +
   2.477 +    <section id="requesting-networked-services">
   2.478 +     <!--OddPage--><h2><span class="secno">4. </span>Requesting networked services</h2>
   2.479 +
   2.480 +
   2.481 +<pre class="widl">[Supplemental, NoInterfaceObject]
   2.482 +interface <dfn id="navigatornetworkservice">NavigatorNetworkService</dfn> {
   2.483 +  // Obtain a Local-networked Service
   2.484 +  void <a href="#dom-navigator-getnetworkservices">getNetworkServices</a>( in any type,
   2.485 +                           in <a href="#navigatornetworkservicesuccesscallback">NavigatorNetworkServiceSuccessCallback</a> successCallback,
   2.486 +                           in optional <a href="#navigatornetworkserviceerrorcallback">NavigatorNetworkServiceErrorCallback</a> errorCallback );
   2.487 +};
   2.488 +<a class="externalDFN" href="http://www.whatwg.org/specs/web-apps/current-work/complete/timers.html#navigator">Navigator</a> implements <a href="#navigatornetworkservice">NavigatorNetworkService</a>;
   2.489 +
   2.490 +[Callback=FunctionOnly, NoInterfaceObject]
   2.491 +interface <dfn id="navigatornetworkservicesuccesscallback">NavigatorNetworkServiceSuccessCallback</dfn> {
   2.492 +  void handleEvent( in <a href="#networkservices">NetworkServices</a> services );
   2.493 +};
   2.494 +
   2.495 +[NoInterfaceObject]
   2.496 +interface <dfn id="navigatornetworkserviceerror">NavigatorNetworkServiceError</dfn> {
   2.497 +  const unsigned short <a href="#dom-navigatornetworkserviceerror-permission_denied">PERMISSION_DENIED_ERR</a> = 1;
   2.498 +  const unsigned short <a href="#dom-navigatornetworkserviceerror-unknown_type_prefix">UNKNOWN_TYPE_PREFIX_ERR</a> = 2;
   2.499 +  readonly attribute unsigned short <a href="#dom-navigatornetworkserviceerror-code">code</a>;
   2.500 +};
   2.501 +
   2.502 +[Callback=FunctionOnly, NoInterfaceObject]
   2.503 +interface <dfn id="navigatornetworkserviceerrorcallback">NavigatorNetworkServiceErrorCallback</dfn> {
   2.504 +  void handleEvent( in <a href="#navigatornetworkserviceerror">NavigatorNetworkServiceError</a> error );
   2.505 +};
   2.506 +</pre>
   2.507 +
   2.508 +  <section id="methods">
   2.509 +   <h3><span class="secno">4.1 </span>Methods</h3>
   2.510 +
   2.511 +      <dl class="domintro">
   2.512 +        <dt>
   2.513 +          <var title="">window</var>
   2.514 +           .
   2.515 +          <code title="dom-navigator">
   2.516 +            <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/timers.html#navigator">navigator</a>
   2.517 +          </code>
   2.518 +           .
   2.519 +          <code title="dom-navigator-getNetworkServices">
   2.520 +            <a href="#dom-navigator-getnetworkservices">getNetworkServices</a>
   2.521 +          </code>
   2.522 +          (
   2.523 +          <var title="">type</var>
   2.524 +          ,
   2.525 +          <var title="">successCallback</var>
   2.526 +           [,
   2.527 +          <var title="">errorCallback</var>
   2.528 +           ] )
   2.529 +        </dt>
   2.530 +        <dd>
   2.531 +          <p>Prompts the user to select one or more discovered network services that have advertised support for the requested service type.</p>
   2.532 +          <p>
   2.533 +            The
   2.534 +            <var title="">type</var>
   2.535 +             argument contains one or more <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> tokens that the web page would like to interact with.
   2.536 +          </p>
   2.537 +          <p>
   2.538 +            If the user accepts, the
   2.539 +            <var title="">successCallback</var>
   2.540 +             is
   2.541 +          invoked, with one or more
   2.542 +            <code>
   2.543 +              <a href="#networkservice"><code>NetworkService</code></a>
   2.544 +            </code>
   2.545 +             objects as
   2.546 +          its argument.
   2.547 +          </p>
   2.548 +          <p>
   2.549 +            If the user declines, the
   2.550 +            <var title="">errorCallback</var>
   2.551 +             (if
   2.552 +          any) is invoked.
   2.553 +          </p>
   2.554 +        </dd>
   2.555 +      </dl>
   2.556 +
   2.557 +       <div>
   2.558 +          <p>
   2.559 +            When the <dfn id="dom-navigator-getnetworkservices" title="dom-navigator-getnetworkservices"><code>getNetworkServices(type, successCallback[, errorCallback])</code></dfn> method is called, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> run the following steps:
   2.560 +          </p>
   2.561 +
   2.562 +          <ol class="rule">
   2.563 +            <li>
   2.564 +               If <var>successCallback</var> is empty or is not an object of type <code>Function</code> then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
   2.565 +            </li>
   2.566 +
   2.567 +            <li>
   2.568 +              Let <var>requested control types</var> be initially set to an empty array.
   2.569 +            </li>
   2.570 +
   2.571 +            <li>
   2.572 +               If <var>type</var> is an array consisting of one or more <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> tokens, then let <var>requested control types</var> by the value of <var>type</var>, removing any non-<a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> tokens from the resulting array.
   2.573 +            </li>
   2.574 +
   2.575 +            <li>
   2.576 +               If <var>type</var> is a string consisting of one <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> token, then let <var>requested control types</var> be an array containing one item with a value of <var>type</var>.
   2.577 +            </li>
   2.578 +
   2.579 +            <li>
   2.580 +               If <var>requested control types</var> is an array that contains at least one or more <a class="internalDFN" href="#dfn-valid-service-type" title="valid service type">valid service type</a> tokens then continue to the step labeled <em>process</em> below. Otherwise, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task" class="externalDFN">queue a task</a> to invoke <var>errorCallback</var>, if it is provided and is an object of type <code>Function</code>, with a new <a href="#navigatornetworkserviceerror"><code>NavigatorNetworkServiceError</code></a> object whose
   2.581 +                 <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 2
   2.582 +                  (<a href="#dom-navigatornetworkserviceerror-unknown_type_prefix"><code>UNKNOWN_TYPE_PREFIX_ERR</code></a>) as its argument,
   2.583 +                   abort any remaining steps and return.
   2.584 +            </li>
   2.585 +
   2.586 +            <li>
   2.587 +               <em>Process</em>: Let <var>services found</var> be an empty array.
   2.588 +            </li>
   2.589 +
   2.590 +            <li>
   2.591 +               For each <var>available service</var> in the <a class="internalDFN" href="#dfn-list-of-available-service-records">list of available service records</a> run the following steps:
   2.592 +               <ol class="rule">
   2.593 +                  <li>
   2.594 +                    For each <var>requested control type</var> in <var>requested control types</var>: If <var>available service</var>'s <code>type</code> attribute equals the <var>requested control type</var> then let <var>matched service</var> equal the value of <var>available service</var> and continue at the step labeled <var>attach</var> below.
   2.595 +                  </li>
   2.596 +                  <li>
   2.597 +                     Continue at the next <var>available service</var>.
   2.598 +                  </li>
   2.599 +                  <li>
   2.600 +                     <em>Attach</em>: If <var>matched service</var> is not empty then run the following steps:
   2.601 +
   2.602 +                     <ol class="rule">
   2.603 +                        <li>
   2.604 +                           Let <var>new service object</var> be a new <a href="#networkservice"><code>NetworkService</code></a> object, mapping the parameters of
   2.605 +                     <var>matched service</var> to this new object where possible.
   2.606 +                        </li>
   2.607 +                        <li>
   2.608 +                           Append <var>new service object</var> to the <var>services found</var> array.
   2.609 +                        </li>
   2.610 +                     </ol>
   2.611 +                  </li>
   2.612 +               </ol>
   2.613 +            </li>
   2.614 +
   2.615 +            <li>
   2.616 +               If <var>services found</var> is an empty array, then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task" class="externalDFN">queue a task</a> to invoke <var>errorCallback</var>, if it is provided and is an object of type <code>Function</code>, with a new <a href="#navigatornetworkserviceerror"><code>NavigatorNetworkServiceError</code></a> object whose
   2.617 +                 <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 1
   2.618 +                 (<a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a>) as its argument, abort any remaining steps and return.
   2.619 +            </li>
   2.620 +
   2.621 +            <li>
   2.622 +               Return, and run the remaining steps asynchronously.
   2.623 +            </li>
   2.624 +
   2.625 +            <li>
   2.626 +               Optionally, e.g. based on a previously-established user preference, for security reasons, or due to platform limitations, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="may" class="rfc2119">may</em> <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task" class="externalDFN">queue a task</a> to invoke <var>errorCallback</var>, if it is provided and is an object of type <code>Function</code>, with a new <a href="#navigatornetworkserviceerror"><code>NavigatorNetworkServiceError</code></a> object whose
   2.627 +                 <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 1
   2.628 +                 (<a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a>) as its argument, abort any remaining steps and return.
   2.629 +            </li>
   2.630 +
   2.631 +            <li>
   2.632 +                  The <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> prompt the user in a user-agent-specific manner for permission to provide the
   2.633 +                  <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/browsers.html#entry-script" class="externalDFN">entry script</a>'s
   2.634 +                  <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/origin-0.html#origin" class="externalDFN">origin</a> with an array of
   2.635 +                  <a href="#networkservice"><code>NetworkService</code></a> objects representing the user-authorized subset of <var>services found</var>.
   2.636 +
   2.637 +               <p>
   2.638 +                  If the user grants permission to access one or more networked services then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="should" class="rfc2119">should</em> include an
   2.639 +                  "ongoing local-network communication" indicator.
   2.640 +               </p>
   2.641 +
   2.642 +               <p>If the user denies permission, then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task" class="externalDFN">queue a task</a> to invoke <var>errorCallback</var>, if it is provided and is an object of type <code>Function</code>, with a new <a href="#navigatornetworkserviceerror"><code>NavigatorNetworkServiceError</code></a> object whose
   2.643 +                <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 1
   2.644 +                (<a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a>) as its argument, abort any remaining steps and return.
   2.645 +              </p>
   2.646 +
   2.647 +              <p>
   2.648 +                If the user never responds, this algorithm stalls on this step.
   2.649 +              </p>
   2.650 +
   2.651 +            </li>
   2.652 +
   2.653 +            <li>
   2.654 +               Let <var>services</var> be the array of one or more <a href="#networkservice"><code>NetworkService</code></a> objects for which the user granted permission.
   2.655 +            </li>
   2.656 +
   2.657 +            <li>
   2.658 +               For each Object <var>service</var> in <var>services</var>, run the following substeps:
   2.659 +
   2.660 +               <ol class="rule">
   2.661 +                  <li>
   2.662 +                     Add the <var>service</var>'s <code>url</code> parameter to the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>.
   2.663 +                  </li>
   2.664 +                  <li>
   2.665 +                    If <var>service</var> was originally created from a <abbr title="Universal Plug-and-Play">UPnP</abbr> discovery process and the <var>service</var>'s <code>eventsUrl</code> parameter is not empty then <a class="internalDFN" href="#dfn-setup-a-upnp-events-subscription">setup a <abbr title="Universal Plug-and-Play">UPnP</abbr> Events Subscription</a> for <var>service</var>.
   2.666 +                  </li>
   2.667 +               </ol>
   2.668 +            </li>
   2.669 +
   2.670 +            <li>
   2.671 +               Let <var>services manager</var> be a new <a href="#networkservices"><code>NetworkServices</code></a> object.
   2.672 +            </li>
   2.673 +
   2.674 +            <li>
   2.675 +               Set <var>services manager</var>'s <code>servicesAvailable</code> attribute to the length of <var>services</var>.
   2.676 +            </li>
   2.677 +
   2.678 +            <li>
   2.679 +              Store the set of <var>services</var> as <dfn id="current_authorized_services">current authorized services</dfn> internally against the newly created <var>services manager</var> object.
   2.680 +            </li>
   2.681 +
   2.682 +            <li>
   2.683 +               The <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task" class="externalDFN">queue a task</a> to invoke <var>successCallback</var> with
   2.684 +               <var>services manager</var> as its argument.
   2.685 +            </li>
   2.686 +
   2.687 +          </ol>
   2.688 +
   2.689 +          <p>
   2.690 +            The <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#task-source" class="externalDFN">task source</a> for these
   2.691 +            <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#concept-task" class="externalDFN">tasks</a> is the
   2.692 +            <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#user-interaction-task-source" class="externalDFN">user interaction task source</a>.
   2.693 +          </p>
   2.694 +
   2.695 +          <p>
   2.696 +            When a <a href="#networkservice"><code>NetworkService</code></a> object is provided to a Web page, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> add the <code>url</code> property
   2.697 +             to the <dfn id="dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</dfn>. This list enables the
   2.698 +            Web page to override and initiate cross-site resource requests towards these URLs, and any sub-resources of these URLs, within the current
   2.699 +            <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/browsers.html#entry-script" class="externalDFN">entry script</a>'s
   2.700 +            <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/origin-0.html#origin" class="externalDFN">origin</a> via various existing mechanisms (e.g. Web Sockets, Server-Sent Events,
   2.701 +            Web Messaging, XMLHttpRequest).
   2.702 +         </p>
   2.703 +
   2.704 +         <p>
   2.705 +            If the user navigates away from the current browsing context, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> remove all previously whitelisted urls from the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>.
   2.706 +            There is no persistence to network service selections provided to a web page. It is not possible to access a previously white-listed networked service without the necessary user authorization in all of the following cases:
   2.707 +            </p><ul>
   2.708 +              <li>If the current script is reloaded at any point in the same or different window.</li>
   2.709 +              <li>if the current script reinvokes the <a href="#dom-navigator-getnetworkservices"><code>getNetworkServices()</code></a> method at any point in its execution.</li>
   2.710 +              <li>If the user navigates forward or back in their history to reload the current page.</li>
   2.711 +              <li>If a script is running in a different origin.</li>
   2.712 +            </ul>
   2.713 +         <p></p>
   2.714 +
   2.715 +      </div>
   2.716 +      </section>
   2.717 +
   2.718 +      <section id="error-handling">
   2.719 +         <h3><span class="secno">4.2 </span>Error Handling</h3>
   2.720 +
   2.721 +      <dl class="domintro">
   2.722 +        <dt>
   2.723 +          <var title="">error</var>
   2.724 +           .
   2.725 +          <code title="dom-NavigatorNetworkServiceError-code">
   2.726 +            <a href="#dom-navigatornetworkserviceerror-code">code</a>
   2.727 +          </code>
   2.728 +        </dt>
   2.729 +        <dd>
   2.730 +          <p>
   2.731 +            Returns the current error's error code. At the current time, this may be <code>1</code> or <code>2</code>, for which the
   2.732 +            corresponding error constants
   2.733 +            <a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a> and
   2.734 +            <a href="#dom-navigatornetworkserviceerror-unknown_type_prefix"><code>UNKNOWN_TYPE_PREFIX_ERR</code></a> are defined.
   2.735 +          </p>
   2.736 +        </dd>
   2.737 +      </dl>
   2.738 +
   2.739 +         <p>
   2.740 +            The <dfn id="dom-navigatornetworkserviceerror-code" title="dom-navigatornetworkserviceerror-code"><code>code</code></dfn> attribute of a
   2.741 +            <a href="#navigatornetworkserviceerror"><code>NavigatorNetworkServiceError</code></a> object <em title="must" class="rfc2119">must</em> return the code for the error, which will be one of the following:
   2.742 +         </p>
   2.743 +
   2.744 +         <dl>
   2.745 +            <dt>
   2.746 +               <dfn id="dom-navigatornetworkserviceerror-permission_denied" title="dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></dfn> (numeric value 1)
   2.747 +            </dt>
   2.748 +            <dd>
   2.749 +               The user denied the page permission to access any services.
   2.750 +            </dd>
   2.751 +            <dt>
   2.752 +               <dfn id="dom-navigatornetworkserviceerror-unknown_type_prefix" title="dom-navigatornetworkserviceerror-unknown_type_prefix"><code>UNKNOWN_TYPE_PREFIX_ERR</code></dfn> (numeric value 2)
   2.753 +            </dt>
   2.754 +            <dd>
   2.755 +               No <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> tokens were provided in the method invocation.
   2.756 +            </dd>
   2.757 +         </dl>
   2.758 +
   2.759 +      </section>
   2.760 +
   2.761 +      </section>
   2.762 +      <section id="obtaining-networked-services">
   2.763 +      <!--OddPage--><h2><span class="secno">5. </span>Obtaining networked services</h2>
   2.764 +
   2.765 +      <p>
   2.766 +         The <a href="#networkservices"><code>NetworkServices</code></a> interface is the top-level response object from a call to <a href="#dom-navigator-getnetworkservices"><code>getNetworkServices()</code></a> and provides access to a set of user-authorized <a href="#networkservice"><code>NetworkService</code></a> objects for the given request.
   2.767 +      </p>
   2.768 +
   2.769 +<pre class="widl">[NoInterfaceObject]
   2.770 +interface <dfn id="networkservices">NetworkServices</dfn> {
   2.771 +  readonly attribute unsigned long    <a href="#dom-networkservices-length">length</a>;
   2.772 +  getter <a href="#networkservice">NetworkService</a> (unsigned long index);
   2.773 +  <a href="#networkservice">NetworkService</a>? <a href="#dom-networkservices-getservicebyid">getServiceById</a>(DOMString id);
   2.774 +
   2.775 +  readonly attribute unsigned long    <a href="#dom-networkservices-servicesavailable">servicesAvailable</a>;
   2.776 +
   2.777 +  // event handler attributes
   2.778 +           attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler" class="externalDFN">EventHandler</a>     <a href="#dom-networkservices-onserviceavailable">onserviceavailable</a>;
   2.779 +           attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler" class="externalDFN">EventHandler</a>     <a href="#dom-networkservices-onserviceunavailable">onserviceunavailable</a>;
   2.780 +
   2.781 +};
   2.782 +
   2.783 +<a href="#networkservices">NetworkServices</a> implements <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#interface-eventtarget" class="externalDFN">EventTarget</a>;
   2.784 +</pre>
   2.785 +
   2.786 +      <section id="attributes">
   2.787 +      <h3><span class="secno">5.1 </span>Attributes</h3>
   2.788 +
   2.789 +        <dl class="domintro">
   2.790 +          <dt>
   2.791 +            <code title="dom-networkservices-length">
   2.792 +              <a href="#dom-networkservices-length">length</a>
   2.793 +            </code>
   2.794 +          </dt>
   2.795 +          <dd>
   2.796 +            <p>
   2.797 +              Returns the current number of services in the respective object's <a class="internalDFN" href="#current_authorized_services">current authorized services</a>.
   2.798 +            </p>
   2.799 +          </dd>
   2.800 +          <dt>
   2.801 +            <code title="dom-networkservices-servicesavailable">
   2.802 +              <a href="#dom-networkservices-servicesavailable">servicesAvailable</a>
   2.803 +            </code>
   2.804 +          </dt>
   2.805 +          <dd>
   2.806 +            <p>
   2.807 +              Returns the current number of services matching one of the app-requested <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> tokens that are actively available within the user's current network.
   2.808 +            </p>
   2.809 +          </dd>
   2.810 +        </dl>
   2.811 +
   2.812 +        <div>
   2.813 +           <p>
   2.814 +              The <dfn id="dom-networkservices-length"><code>length</code></dfn> attribute <em title="must" class="rfc2119">must</em> return the number of services represented in the object's corresponding <a class="internalDFN" href="#current_authorized_services">current authorized services</a> list at the time of getting.
   2.815 +           </p>
   2.816 +
   2.817 +           <p>
   2.818 +              The <dfn id="dom-networkservices-servicesavailable"><code>servicesAvailable</code></dfn> attribute <em title="must" class="rfc2119">must</em> return the number of services available in the
   2.819 +              user's network that match the <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> that was initially used to create the current <a href="#networkservices"><code>NetworkServices</code></a> object.
   2.820 +              By default, <a href="#dom-networkservices-servicesavailable"><code>servicesAvailable</code></a> <em title="must" class="rfc2119">must</em> be set to <code>1</code>.
   2.821 +           </p>
   2.822 +
   2.823 +           <p>
   2.824 +             When a previously unknown instance of a networked service matching one or the requested <a href="#dfn-valid-service-type">valid service types</a> becomes available on the user's current network, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> fire a new simple
   2.825 +             event at the <a href="#dom-networkservices-onserviceavailable"><code>onserviceavailable</code></a> event handler.
   2.826 +           </p>
   2.827 +
   2.828 +           <p>
   2.829 +             When a previously known instance of a networked service matching one or the requested <a href="#dfn-valid-service-type">valid service types</a> becomes unavailable on the user's current network, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> fire a new simple
   2.830 +             event at the <a href="#dom-networkservices-onserviceunavailable"><code>onserviceunavailable</code></a> event handler.
   2.831 +           </p>
   2.832 +        </div>
   2.833 +
   2.834 +      </section>
   2.835 +
   2.836 +      <section id="methods-1">
   2.837 +      <h3><span class="secno">5.2 </span>Methods</h3>
   2.838 +        <dl class="domintro">
   2.839 +        <dt>
   2.840 +          <code title="networkservices-getter">
   2.841 +            <a href="#networkservices">services</a>
   2.842 +          </code>
   2.843 +          [
   2.844 +          <var title="">index</var>
   2.845 +          ]
   2.846 +        </dt>
   2.847 +        <dd>
   2.848 +          <p>
   2.849 +            Returns the specified <a href="#networkservice"><code>NetworkService</code></a> object.
   2.850 +          </p>
   2.851 +        </dd>
   2.852 +        <dt>
   2.853 +          <code title="networkservices-getter">
   2.854 +            <a href="#networkservices">services</a>
   2.855 +          </code>
   2.856 +          .
   2.857 +          <code title="dom-networkservices-getservicebyid">
   2.858 +            <a href="#dom-networkservices-getservicebyid">getServiceById</a>
   2.859 +          </code>
   2.860 +          (
   2.861 +          <var title="">id</var>
   2.862 +          )
   2.863 +        </dt>
   2.864 +        <dd>
   2.865 +          <p>
   2.866 +            Returns the <a href="#networkservice"><code>NetworkService</code></a> object with the given identifier, or null if no
   2.867 +            service has that identifier.
   2.868 +          </p>
   2.869 +        </dd>
   2.870 +      </dl>
   2.871 +
   2.872 +      <p>
   2.873 +        A <a href="#networkservices"><code>NetworkServices</code></a> object represents the current list of zero or more <a class="internalDFN" href="#current_authorized_services">current authorized services</a>, of which zero or more can be available at a time. Each item in <a class="internalDFN" href="#current_authorized_services">current authorized services</a> is represented by a <a href="#networkservice"><code>NetworkService</code></a> object.
   2.874 +      </p>
   2.875 +
   2.876 +      <div class="note"><div class="note-title"><span>Note</span></div><p class="">
   2.877 +        Each service in a <a href="#networkservices"><code>NetworkServices</code></a> object thus has an index; the first has the index 0, and each subsequent service is numbered one higher than the previous one. If the <a class="internalDFN" href="#dfn-user-agent">user agent</a> dynamically adds or removes network services for any reason, then the indices of the services in <a class="internalDFN" href="#current_authorized_services">current authorized services</a> will change dynamically. If the set of network services changes entirely, then all the previous services will be removed from <a class="internalDFN" href="#current_authorized_services">current authorized services</a> and replaced with new services.
   2.878 +      </p></div>
   2.879 +
   2.880 +      <p>
   2.881 +        The <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#supported-property-indices" class="externalDFN">supported property indices</a> of <a href="#networkservices"><code>NetworkServices</code></a> objects at any instant are the numbers from zero to the number of items in <a class="internalDFN" href="#current_authorized_services">current authorized services</a> represented by the respective object minus one, if any services are represented in <a class="internalDFN" href="#current_authorized_services">current authorized services</a>. If a <a href="#networkservices"><code>NetworkServices</code></a> object represents no <a class="internalDFN" href="#current_authorized_services">current authorized services</a>, it has no <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#supported-property-indices" class="externalDFN">supported property indices</a>.
   2.882 +      </p>
   2.883 +
   2.884 +      <p>
   2.885 +        To <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/infrastructure.html#determine-the-value-of-an-indexed-property" class="externalDFN">determine the value of an indexed property</a> for a given index <var>index</var> in a <a href="#networkservices"><code>NetworkServices</code></a> object's <a class="internalDFN" href="#current_authorized_services">current authorized services</a>, the user agent <em title="must" class="rfc2119">must</em> return the <a href="#networkservice"><code>NetworkService</code></a> object that represents the <var>index</var>th service in <a class="internalDFN" href="#current_authorized_services">current authorized services</a>.
   2.886 +      </p>
   2.887 +
   2.888 +      <p>
   2.889 +        The <dfn id="dom-networkservices-getservicebyid"><code>getServiceById(id)</code></dfn> method <em title="must" class="rfc2119">must</em> return the first <a href="#networkservice"><code>NetworkService</code></a> object in <a class="internalDFN" href="#current_authorized_services">current authorized services</a> represented by the respective object whose <a href="#dom-networkservice-id"><code>id</code></a> attribute is equal to the value of the <var>id</var> argument.
   2.890 +        When no services in <a class="internalDFN" href="#current_authorized_services">current authorized services</a> match the given argument, the method <em title="must" class="rfc2119">must</em> return null.
   2.891 +      </p>
   2.892 +
   2.893 +      <p>
   2.894 +         Services available within the local network can connect and disconnect at different times during the execution of a web page. A <a class="internalDFN" href="#dfn-user-agent">user agent</a> can
   2.895 +         inform a web page when the state of networked services matching the requested <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> change. Web pages can use this information to enable in-page experiences for communicating the state of networked services
   2.896 +         with the ability to change the particular service or set of services the page is connected to by re-invoking the <a href="#dom-navigator-getnetworkservices"><code>getNetworkServices()</code></a> method.
   2.897 +      </p>
   2.898 +
   2.899 +      </section>
   2.900 +
   2.901 +      <section id="events">
   2.902 +      <h3><span class="secno">5.3 </span>Events</h3>
   2.903 +
   2.904 +      <p>
   2.905 +         The following are the event handlers (and their corresponding event handler event types) that must be supported, as IDL attributes, by all objects implementing the <a href="#networkservices"><code>NetworkServices</code></a> interface:
   2.906 +       </p>
   2.907 +
   2.908 +       <table border="1">
   2.909 +        <thead>
   2.910 +          <tr>
   2.911 +            <th>
   2.912 +              <span title="event handlers">Event handler</span>
   2.913 +            </th>
   2.914 +            <th>
   2.915 +              <span>Event handler event type</span>
   2.916 +            </th>
   2.917 +          </tr>
   2.918 +        </thead>
   2.919 +        <tbody>
   2.920 +          <tr>
   2.921 +            <td>
   2.922 +              <dfn id="dom-networkservices-onserviceavailable" title="dom-NetworkServices-onserviceavailable">
   2.923 +                <code>onserviceavailable</code>
   2.924 +              </dfn>
   2.925 +            </td>
   2.926 +            <td>
   2.927 +              <code title="event-serviceavailable">serviceavailable</code>
   2.928 +            </td>
   2.929 +          </tr>
   2.930 +          <tr>
   2.931 +            <td>
   2.932 +              <dfn id="dom-networkservices-onserviceunavailable" title="dom-NetworkServices-onserviceunavailable">
   2.933 +                <code>onserviceunavailable</code>
   2.934 +              </dfn>
   2.935 +            </td>
   2.936 +            <td>
   2.937 +              <code title="event-serviceunavailable">serviceunavailable</code>
   2.938 +            </td>
   2.939 +          </tr>
   2.940 +        </tbody>
   2.941 +      </table>
   2.942 +
   2.943 +      <p>
   2.944 +         Events with an event type of <code>serviceavailable</code> or <code>serviceunavailable</code> defined in this specification are simple <code>Event</code> objects.
   2.945 +      </p>
   2.946 +
   2.947 +      </section>
   2.948 +
   2.949 +    </section>
   2.950 +    <section id="communicating-with-a-networked-service">
   2.951 +    <!--OddPage--><h2><span class="secno">6. </span>Communicating with a networked service</h2>
   2.952 +
   2.953 +<p>
   2.954 +   The <a href="#networkservice"><code>NetworkService</code></a> interface is used to provide a set of connection information for an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> service endpoint and if available, service events, running on a networked device.
   2.955 +</p>
   2.956 +
   2.957 +<pre class="widl">[NoInterfaceObject]
   2.958 +interface <dfn id="networkservice">NetworkService</dfn> {
   2.959 +  readonly attribute DOMString        <a href="#dom-networkservice-id">id</a>;
   2.960 +  readonly attribute DOMString        <a href="#dom-networkservice-name">name</a>;
   2.961 +  readonly attribute DOMString        <a href="#dom-networkservice-type">type</a>;
   2.962 +  readonly attribute DOMString        <a href="#dom-networkservice-url">url</a>;
   2.963 +  readonly attribute DOMString        <a href="#dom-networkservice-config">config</a>;
   2.964 +
   2.965 +  const unsigned short <a href="#dom-networkservice-AVAILABLE">AVAILABLE</a>      = 1;
   2.966 +  const unsigned short <a href="#dom-networkservice-UNAVAILABLE">UNAVAILABLE</a>    = 2;
   2.967 +  readonly attribute unsigned short   <a href="#dom-networkservice-readystate">readyState</a>;
   2.968 +
   2.969 +  // event handler attributes
   2.970 +           attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler" class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onreadystatechange">onreadystatechange</a>;
   2.971 +           attribute <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#eventhandler" class="externalDFN">EventHandler</a>     <a href="#dom-networkservice-onmessage">onmessage</a>;
   2.972 +};
   2.973 +
   2.974 +<a href="#networkservice">NetworkService</a> implements <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#interface-eventtarget" class="externalDFN">EventTarget</a>;
   2.975 +</pre>
   2.976 +
   2.977 +<section id="attributes-1">
   2.978 +  <h3><span class="secno">6.1 </span>Attributes</h3>
   2.979 +
   2.980 +      <dl class="domintro">
   2.981 +        <dt>
   2.982 +          <var title="">service</var>
   2.983 +           .
   2.984 +          <code title="dom-networkservice-id">
   2.985 +            <a href="#dom-networkservice-id">id</a>
   2.986 +          </code>
   2.987 +        </dt>
   2.988 +        <dd>
   2.989 +          <p>
   2.990 +            A unique identifier for the given user-selected service instance.
   2.991 +          </p>
   2.992 +        </dd>
   2.993 +        <dt>
   2.994 +          <var title="">service</var>
   2.995 +           .
   2.996 +          <code title="dom-networkservice-name">
   2.997 +            <a href="#dom-networkservice-name">name</a>
   2.998 +          </code>
   2.999 +        </dt>
  2.1000 +        <dd>
  2.1001 +          <p>
  2.1002 +            The name of the user-selected service.
  2.1003 +          </p>
  2.1004 +        </dd>
  2.1005 +        <dt>
  2.1006 +          <var title="">service</var>
  2.1007 +           .
  2.1008 +          <code title="dom-networkservice-type">
  2.1009 +            <a href="#dom-networkservice-type">type</a>
  2.1010 +          </code>
  2.1011 +        </dt>
  2.1012 +        <dd>
  2.1013 +          <p>
  2.1014 +            The <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> token value of the user-selected service.
  2.1015 +          </p>
  2.1016 +        </dd>
  2.1017 +        <dt>
  2.1018 +          <var title="">service</var>
  2.1019 +           .
  2.1020 +          <code title="dom-networkservice-url">
  2.1021 +            <a href="#dom-networkservice-url">url</a>
  2.1022 +          </code>
  2.1023 +        </dt>
  2.1024 +        <dd>
  2.1025 +          <p>
  2.1026 +            The control <abbr title="Uniform Resource Locator">URL</abbr> endpoint (including any required port information) of the user-selected control service that has been added to the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>.
  2.1027 +          </p>
  2.1028 +        </dd>
  2.1029 +        <dt>
  2.1030 +          <var title="">service</var>
  2.1031 +           .
  2.1032 +          <code title="dom-networkservice-config">
  2.1033 +            <a href="#dom-networkservice-config">config</a>
  2.1034 +          </code>
  2.1035 +        </dt>
  2.1036 +        <dd>
  2.1037 +          <p>
  2.1038 +            The configuration information associated with the service depending on the requested service type.
  2.1039 +          </p>
  2.1040 +        </dd>
  2.1041 +      </dl>
  2.1042 +
  2.1043 +          <p>
  2.1044 +            The <dfn id="dom-networkservice-id"><code>id</code></dfn> attribute is a unique identifier for the service. Two services provided at different times or on different objects <em title="must" class="rfc2119">must</em> have the same <a href="#dom-networkservice-id"><code>id</code></a> value.
  2.1045 +         </p>
  2.1046 +
  2.1047 +         <p>
  2.1048 +            The <dfn id="dom-networkservice-name"><code>name</code></dfn> attribute represents a human-readable title for the service.
  2.1049 +         </p>
  2.1050 +
  2.1051 +         <p>
  2.1052 +             The <dfn id="dom-networkservice-type"><code>type</code></dfn> attribute reflects the value of the <a class="internalDFN" href="#dfn-valid-service-type">valid service type</a> of the service.
  2.1053 +          </p>
  2.1054 +
  2.1055 +         <p>
  2.1056 +            The <dfn id="dom-networkservice-url"><code>url</code></dfn> attribute is an <a href="http://www.w3.org/TR/html5/urls.html#absolute-url" class="externalDFN">absolute <abbr title="Uniform Resource Locator">URL</abbr></a> pointing to the root <abbr title="Hypertext Transfer Protocol">HTTP</abbr>
  2.1057 +            endpoint for the service that has been added to the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>. Web pages can subsequently use this value for implicit cross-document messaging via various existing mechanisms (e.g. Web Sockets, Server-Sent Events, Web Messaging, XMLHttpRequest).
  2.1058 +         </p>
  2.1059 +
  2.1060 +         <p>
  2.1061 +            The <dfn id="dom-networkservice-config"><code>config</code></dfn> attribute provides the raw configuration information extracted from the given network service.
  2.1062 +         </p>
  2.1063 +
  2.1064 +      </section>
  2.1065 +
  2.1066 +      <section id="states">
  2.1067 +         <h3><span class="secno">6.2 </span>States</h3>
  2.1068 +
  2.1069 +      <dl class="domintro">
  2.1070 +        <dt>
  2.1071 +          <var title="">service</var>
  2.1072 +           .
  2.1073 +          <code title="dom-networkservice-readystate">
  2.1074 +            <a href="#dom-networkservice-readystate">readyState</a>
  2.1075 +          </code>
  2.1076 +        </dt>
  2.1077 +        <dd>
  2.1078 +          <p>
  2.1079 +            Returns the current state.
  2.1080 +          </p>
  2.1081 +        </dd>
  2.1082 +      </dl>
  2.1083 +
  2.1084 +         A <a href="#networkservice"><code>NetworkService</code></a> object can be in several states. The <dfn id="dom-networkservice-readystate"><code>readyState</code></dfn> attribute <em title="must" class="rfc2119">must</em> return the current state of the networked service,
  2.1085 +         which <em title="must" class="rfc2119">must</em> be one of the following values:
  2.1086 +
  2.1087 +         <dl>
  2.1088 +           <dt>
  2.1089 +             <dfn id="dom-networkservice-AVAILABLE" title="dom-networkservice-AVAILABLE">
  2.1090 +               <code>AVAILABLE</code>
  2.1091 +             </dfn>
  2.1092 +              (numeric value
  2.1093 +             1)
  2.1094 +
  2.1095 +
  2.1096 +           </dt>
  2.1097 +           <dd>
  2.1098 +             <p>The object is connected to its service endpoint.
  2.1099 +
  2.1100 +            </p>
  2.1101 +           </dd>
  2.1102 +           <dt>
  2.1103 +             <dfn id="dom-networkservice-UNAVAILABLE" title="dom-networkservice-UNAVAILABLE">
  2.1104 +               <code>UNAVAILABLE</code>
  2.1105 +             </dfn>
  2.1106 +              (numeric value
  2.1107 +             2)
  2.1108 +           </dt>
  2.1109 +           <dd>
  2.1110 +             <p>The object is not connected to its service endpoint.
  2.1111 +            </p>
  2.1112 +           </dd>
  2.1113 +         </dl>
  2.1114 +
  2.1115 +      </section>
  2.1116 +
  2.1117 +      <section id="events-1">
  2.1118 +         <h3><span class="secno">6.3 </span>Events</h3>
  2.1119 +
  2.1120 +      <p>
  2.1121 +         The following are the event handlers (and their corresponding event handler event types) that must be supported, as IDL attributes, by all objects implementing the
  2.1122 +         <a href="#networkservice"><code>NetworkService</code></a> interface:
  2.1123 +       </p>
  2.1124 +
  2.1125 +       <table border="1">
  2.1126 +        <thead>
  2.1127 +          <tr>
  2.1128 +            <th>
  2.1129 +              <span title="event handlers">Event handler</span>
  2.1130 +            </th>
  2.1131 +            <th>
  2.1132 +              <span>Event handler event type</span>
  2.1133 +            </th>
  2.1134 +          </tr>
  2.1135 +        </thead>
  2.1136 +        <tbody>
  2.1137 +          <tr>
  2.1138 +            <td>
  2.1139 +              <dfn id="dom-networkservice-onmessage" title="dom-NetworkService-onmessage">
  2.1140 +                <code>onmessage</code>
  2.1141 +              </dfn>
  2.1142 +            </td>
  2.1143 +            <td>
  2.1144 +              <code title="event-message">message</code>
  2.1145 +            </td>
  2.1146 +          </tr>
  2.1147 +          <tr>
  2.1148 +            <td>
  2.1149 +              <dfn id="dom-networkservice-onreadystatechange" title="dom-NetworkService-onreadystatechange">
  2.1150 +                <code>onreadystatechange</code>
  2.1151 +              </dfn>
  2.1152 +            </td>
  2.1153 +            <td>
  2.1154 +              <code title="event-onreadystatechange">readystatechange</code>
  2.1155 +            </td>
  2.1156 +          </tr>
  2.1157 +        </tbody>
  2.1158 +      </table>
  2.1159 +
  2.1160 +      <p>
  2.1161 +         Events with an event type of <code>message</code> defined in this specification are <a href="http://dev.w3.org/html5/postmsg/#messageevent" class="externalDFN"><code>MessageEvent</code></a> objects as defined in [<cite><a href="#bib-POSTMSG" class="bibref">POSTMSG</a></cite>].
  2.1162 +      </p>
  2.1163 +
  2.1164 +      <p>
  2.1165 +         Events with an event type of <code>readystatechange</code> defined in this specification are simple <code>Event</code> objects.
  2.1166 +      </p>
  2.1167 +
  2.1168 +      </section>
  2.1169 +   </section>
  2.1170 +
  2.1171 +      <section id="service-discovery">
  2.1172 +            <!--OddPage--><h2><span class="secno">7. </span>Service Discovery</h2>
  2.1173 +
  2.1174 +      <p>
  2.1175 +         A <a class="internalDFN" href="#dfn-user-agent">user agent</a> conforming to this specification <em title="may" class="rfc2119">may</em> implement <abbr title="Simple Service Discovery Protocol">SSDP</abbr> [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>] and Zeroconf [<cite><a href="#bib-ZEROCONF" class="bibref">ZEROCONF</a></cite>] service discovery mechanisms
  2.1176 +         to enable Web pages to request and connect with <abbr title="Hypertext Transfer Protocol">HTTP</abbr> services running on networked devices, discovered via either mechanism, through this <abbr title="Application Programming Interface">API</abbr>. When a <a class="internalDFN" href="#dfn-user-agent">user agent</a> implements either of these service discovery mechanisms, then it <em title="must" class="rfc2119">must</em> conform to the corresponding algorithms provided in this section of the specification.
  2.1177 +      </p>
  2.1178 +      <p>
  2.1179 +         This section presents how the results of these two service discovery
  2.1180 +         mechanisms will be matched to requested service types and how their properties will be applied to any resulting <a href="#networkservice"><code>NetworkService</code></a> objects.
  2.1181 +      </p>
  2.1182 +
  2.1183 +      <p>
  2.1184 +         It is expected that user agents will perform these service discovery mechansisms asynchronously and periodically update the <a>list of networked devices</a> as required. The timing of any
  2.1185 +         service discovery mechanisms is an implementation detail left to the discretion of the implementer (e.g. once on user agent start-up, every X seconds during user agent execution or on
  2.1186 +         invocation of this <abbr title="Application Programming Interface">API</abbr> from a Web page).
  2.1187 +      </p>
  2.1188 +
  2.1189 +      <p>
  2.1190 +         The <dfn id="dfn-list-of-available-service-records">list of available service records</dfn> is a single dynamic internal lookup table within user agents that is used to track the current services available in the network at any given time.
  2.1191 +         At any point during the running of either of the two service discovery mechanisms then existing entries within this table can be updated, entries can be added and entries can be removed as the status of networked
  2.1192 +         services changes. Each record contained within this table contains the attributes: <code>id</code>, <code>name</code>, <code>type</code>, <code>url</code> and <code>config</code>.
  2.1193 +      </p>
  2.1194 +
  2.1195 +            <section id="zeroconf-mdns-dns-sd">
  2.1196 +         <h3><span class="secno">7.1 </span>Zeroconf (<abbr title="Multicast DNS">mDNS</abbr> + <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr>)</h3>
  2.1197 +
  2.1198 +         <p>
  2.1199 +            For each <abbr title="Domain Name System">DNS</abbr> response received from a user-agent-initiated Multicast <abbr title="Domain Name System">DNS</abbr> Browse for <abbr title="DNS Pointer Record">PTR</abbr> records with the name <code>_services._dns-sd._udp</code> on the resolved recommended automatic browsing
  2.1200 +   domain [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>], the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> run the following steps:
  2.1201 +         </p>
  2.1202 +
  2.1203 +         <ol class="rule">
  2.1204 +
  2.1205 +            <li>Let <var>service <abbr title="Multicast DNS">mDNS</abbr> responses</var> be an array of <abbr title="DNS Pointer Record">PTR</abbr> records received by issuing a Multicast <abbr title="Domain Name System">DNS</abbr> Browse for <abbr title="DNS Pointer Record">PTR</abbr> records with the name of the current discovered service type.</li>
  2.1206 +
  2.1207 +            <li>For each Object <var>service <abbr title="Multicast DNS">mDNS</abbr> response</var> in <var>service <abbr title="Multicast DNS">mDNS</abbr> responses</var>, run the following steps:
  2.1208 +               <ol>
  2.1209 +
  2.1210 +                  <li>
  2.1211 +                     Let <var>network service record</var> be an Object consisting of the following empty properties: <code>id</code>, <code>name</code>, <code>type</code>, <code>url</code>, <code>config</code>.
  2.1212 +                  </li>
  2.1213 +
  2.1214 +                  <li>
  2.1215 +                     Set <var>network service record</var>'s <code>id</code> property to the value of the full <abbr title="DNS Pointer Record">PTR</abbr> Service Instance Name [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>].
  2.1216 +                  </li>
  2.1217 +
  2.1218 +                  <li>
  2.1219 +                     Set <var>network service record</var>'s <code>name</code> property to the value of the <abbr title="DNS Pointer Record">PTR</abbr> Service Instance Name's <var>Instance</var> component [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>].
  2.1220 +                  </li>
  2.1221 +
  2.1222 +                  <li>
  2.1223 +                     Set <var>network service record</var>'s <code>type</code> property to the concatenation of the string <code>zeroconf:</code> followed by the value of the <abbr title="DNS Pointer Record">PTR</abbr> Service Instance Name's <var>Service</var> component [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>].
  2.1224 +                  </li>
  2.1225 +
  2.1226 +                  <li>
  2.1227 +                     Set <var>network service record</var>'s <code>url</code> property to the resolvable Service <abbr title="Uniform Resource Locator">URL</abbr> obtained from performing an <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr> Lookup [<cite><a href="#bib-DNS-SD" class="bibref">DNS-SD</a></cite>] of the current service from the <abbr title="DNS Pointer Record">PTR</abbr> record provided [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>].
  2.1228 +                  </li>
  2.1229 +
  2.1230 +                  <li>
  2.1231 +                     Set <var>network service record</var>'s <code>config</code> property to the string value of the contents of the first <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr> TXT record associated with the <var>service <abbr title="Multicast DNS">mDNS</abbr> response</var> as defined in [<cite><a href="#bib-DNS-SD" class="bibref">DNS-SD</a></cite>].
  2.1232 +                  </li>
  2.1233 +
  2.1234 +                  <li>
  2.1235 +                     For each Object <var>existing service record</var> in the current <a class="internalDFN" href="#dfn-list-of-available-service-records">list of available service records</a>, run the following sub-steps:
  2.1236 +                     <ol class="rule">
  2.1237 +
  2.1238 +                       <li>
  2.1239 +                        If the <var>existing service record</var>'s <code>id</code> property matches the value of the <var>network service record</var>'s <code>id</code>, then set the
  2.1240 +                        value of <var>existing service record</var> in the current <a class="internalDFN" href="#dfn-list-of-available-service-records">list of available service records</a>  to the value of the
  2.1241 +                        <var>network service record</var> and skip the next step.
  2.1242 +                       </li>
  2.1243 +                     </ol>
  2.1244 +                  </li>
  2.1245 +
  2.1246 +                  <li>
  2.1247 +                     Add <var>network service record</var> to the <a class="internalDFN" href="#dfn-list-of-available-service-records">list of available service records</a>.
  2.1248 +                  </li>
  2.1249 +
  2.1250 +                  <li>
  2.1251 +                     For each non-garbage collected <a href="#networkservice"><code>NetworkService</code></a> object run the following steps:
  2.1252 +
  2.1253 +                     <ol class="rule">
  2.1254 +                        <li>
  2.1255 +                           If the <a href="#networkservice"><code>NetworkService</code></a> object's <code>type</code> attribute does not equal the
  2.1256 +                           current <a>network service record</a>'s <code>type</code> property then continue at the next available active
  2.1257 +                           <a href="#networkservice"><code>NetworkService</code></a> object.
  2.1258 +                        </li>
  2.1259 +                        <li>
  2.1260 +                           Increment the <code>servicesAvailable</code> attribute of the <a href="#networkservices"><code>NetworkServices</code></a> object by <code>1</code>.
  2.1261 +                        </li>
  2.1262 +                     </ol>
  2.1263 +                  </li>
  2.1264 +            </ol>
  2.1265 +           </li>
  2.1266 +         </ol>
  2.1267 +
  2.1268 +      </section>
  2.1269 +
  2.1270 +      <section id="universal-plug-and-play-upnp">
  2.1271 +         <h3><span class="secno">7.2 </span>Universal Plug-and-Play (<abbr title="Universal Plug-and-Play">UPnP</abbr>)</h3>
  2.1272 +
  2.1273 +         <p>
  2.1274 +            For each <abbr title="Simple Service Discovery Protocol">SSDP</abbr> Presence Announcement [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>] - a <abbr title="Hypertext Transfer Protocol">HTTP</abbr> NOTIFY request - received from a user-agent-initiated <abbr title="Simple Service Discovery Protocol">SSDP</abbr> Discovery Request [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>], the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> run the following steps:
  2.1275 +         </p>
  2.1276 +
  2.1277 +         <ol class="rule">
  2.1278 +            <li>
  2.1279 +               Let <var>ssdp device</var> be an Object with a property for each <abbr title="Hypertext Transfer Protocol">HTTP</abbr> header received in the received <abbr title="Simple Service Discovery Protocol">SSDP</abbr> Presence Announcement, with each key being the name of a <abbr title="Hypertext Transfer Protocol">HTTP</abbr> header and its
  2.1280 +               value being that <abbr title="Hypertext Transfer Protocol">HTTP</abbr> header's accompanying value.
  2.1281 +            </li>
  2.1282 +
  2.1283 +            <li>
  2.1284 +               If <var>ssdp device</var> does not contain at least one <var>NTS</var>, <var>USN</var> and <var>Location</var> parameter, then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
  2.1285 +            </li>
  2.1286 +
  2.1287 +            <li>
  2.1288 +               If the first occurrence of <var>NTS</var> has a value other than <code>ssdp:alive</code>, then continue to the step labeled <var>update service monitor</var> below.
  2.1289 +            </li>
  2.1290 +
  2.1291 +            <li>
  2.1292 +               Let <var>root device descriptor file</var> contain the contents of the file located at the <abbr title="Uniform Resource Locator">URL</abbr> provided in the first occurrence of <var>Location</var> obtained according to the rules
  2.1293 +               defined in the section 'Retrieving a description using <abbr title="Hypertext Transfer Protocol">HTTP</abbr>' [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>].
  2.1294 +            </li>
  2.1295 +
  2.1296 +            <li>
  2.1297 +               If <var>root device descriptor file</var> is empty, then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
  2.1298 +            </li>
  2.1299 +
  2.1300 +            <li>
  2.1301 +               Let <var>advertised services</var> be a <a>list of all advertised services</a> obtained from the <var>root device descriptor file</var> containing all sub-nodes of the <code>serviceList</code> node as described in
  2.1302 +               the section 'Device Description' [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>].
  2.1303 +            </li>
  2.1304 +
  2.1305 +            <li>
  2.1306 +               For each Object <var>advertised service</var> in <var>advertised services</var> run the following steps:
  2.1307 +               <ol class="rule">
  2.1308 +
  2.1309 +                  <li>
  2.1310 +                     Let <var>network service record</var> be an Object consisting of the following empty properties: <code>id</code>, <code>name</code>, <code>type</code>, <code>url</code>, <code>eventsUrl</code>, <code>config</code>.
  2.1311 +                  </li>
  2.1312 +
  2.1313 +                  <li>
  2.1314 +                     Set <var>network service record</var>'s <code>id</code> property to the string value of the first occurrence of <var>ssdp device</var>'s <var>USN</var> parameter.
  2.1315 +                  </li>
  2.1316 +
  2.1317 +                  <li>
  2.1318 +                     Set <var>network service record</var>'s <code>name</code> property to the string value of the first occurrence of the <var>service</var>'s <code>serviceId</code> property.
  2.1319 +                  </li>
  2.1320 +
  2.1321 +                  <li>
  2.1322 +                     Set <var>network service record</var>'s <code>type</code> property to the concatenation of the string <code>upnp:</code> followed by the string value of the first occurrence of the <var>service</var>'s <code>serviceType</code> property.
  2.1323 +                  </li>
  2.1324 +
  2.1325 +                  <li>
  2.1326 +                     Set <var>network service record</var>'s <code>url</code> property to the string value of the first occurrence of the <var>service</var>'s <code>controlURL</code> property.
  2.1327 +                  </li>
  2.1328 +
  2.1329 +                  <li>
  2.1330 +                     Set <var>network service record</var>'s <code>config</code> property to the string value of the first occurrence of the <var>device</var> property.
  2.1331 +                  </li>
  2.1332 +
  2.1333 +                  <li>
  2.1334 +                     If <var>service</var>'s <code>eventSubURL</code> property is empty, then continue to the step labeled <em>register</em> below.
  2.1335 +                  </li>
  2.1336 +
  2.1337 +                  <li>
  2.1338 +                     Set <var>network service record</var>'s <code>eventsUrl</code> property to the string value of the first occurrence of the <var>service</var>'s <code>eventSubURL</code> property.
  2.1339 +                  </li>
  2.1340 +
  2.1341 +                  <li>
  2.1342 +                     <em>Register</em>: For each Object <var>existing service record</var> in the current <a class="internalDFN" href="#dfn-list-of-available-service-records">list of available service records</a>, run the following sub-steps:
  2.1343 +                     <ol class="rule">
  2.1344 +
  2.1345 +                       <li>
  2.1346 +                        If the <var>existing service record</var>'s <var>id</var> property matches the value of the first occurrence of <var>USN</var> and the
  2.1347 +                        <var>existing service record</var>'s <code>type</code> property matches the value of <var>network service record</var>'s <code>type</code>, then set the
  2.1348 +                        value of <var>existing service record</var> in the current <a class="internalDFN" href="#dfn-list-of-available-service-records">list of available service records</a>  to the value of the
  2.1349 +                        <var>network service record</var> and skip the next step.
  2.1350 +                       </li>
  2.1351 +                     </ol>
  2.1352 +                  </li>
  2.1353 +
  2.1354 +                  <li>
  2.1355 +                     Add <var>network service record</var> to the <a class="internalDFN" href="#dfn-list-of-available-service-records">list of available service records</a>.
  2.1356 +                  </li>
  2.1357 +
  2.1358 +               </ol>
  2.1359 +            </li>
  2.1360 +            <li>
  2.1361 +               <em>Update Service Monitor</em>: For each non-garbage collected <a href="#networkservice"><code>NetworkService</code></a> object run the following steps:
  2.1362 +
  2.1363 +               <ol class="rule">
  2.1364 +                  <li>
  2.1365 +                     If this <a href="#networkservice"><code>NetworkService</code></a> object's <code>type</code> attribute does not equal the
  2.1366 +                     current <a>network service record</a>'s <code>type</code> property then continue at the next available active
  2.1367 +                     <a href="#networkservice"><code>NetworkService</code></a> object.
  2.1368 +                  </li>
  2.1369 +                  <li>
  2.1370 +                     If the <var>announcement type</var> equals <code>ssdp:alive</code> then Increment the <code>servicesAvailable</code> attribute of the <a href="#networkservices"><code>NetworkServices</code></a>
  2.1371 +                     object by <code>1</code>. Otherwise, decrement the <code>servicesAvailable</code> attribute of the <a href="#networkservices"><code>NetworkServices</code></a>
  2.1372 +                     object by <code>1</code>.
  2.1373 +                  </li>
  2.1374 +               </ol>
  2.1375 +            </li>
  2.1376 +         </ol>
  2.1377 +
  2.1378 +         <p>
  2.1379 +            A <dfn id="dfn-user-agent-generated-callback-url">user-agent generated callback url</dfn> is a Local-network accessible <abbr title="Uniform Resource Locator">URL</abbr> endpoint that a <a class="internalDFN" href="#dfn-user-agent">user agent</a> must generate and maintain for receiving <abbr title="Hypertext Transfer Protocol">HTTP</abbr> NOTIFY requests from <abbr title="Universal Plug-and-Play">UPnP</abbr> Event sources.
  2.1380 +         </p>
  2.1381 +
  2.1382 +         <p>When the <a class="internalDFN" href="#dfn-user-agent">user agent</a> is to <dfn id="dfn-setup-a-upnp-events-subscription">setup a <abbr title="Universal Plug-and-Play">UPnP</abbr> Events Subscription</dfn>, it is to run the following steps with the current <var>network service record</var> object:</p>
  2.1383 +
  2.1384 +         <ol class="rule">
  2.1385 +            <li>
  2.1386 +               If <var>network service record</var>'s <code>eventsUrl</code> property is empty then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
  2.1387 +            </li>
  2.1388 +
  2.1389 +            <li>
  2.1390 +               Let <var>callback <abbr title="Uniform Resource Locator">URL</abbr></var> be the value of creating a new <a class="internalDFN" href="#dfn-user-agent-generated-callback-url">user-agent generated callback url</a>.
  2.1391 +            </li>
  2.1392 +
  2.1393 +            <li>
  2.1394 +               Send a <abbr title="Hypertext Transfer Protocol">HTTP</abbr> SUBSCRIBE request with a <em>NT</em> header with a string value of <code>upnp:event</code>, a <em>TIMEOUT</em> header with an integer value of
  2.1395 +               <code>86400</code> and a <em>CALLBACK</em> header
  2.1396 +               with a string value of <var>callback <abbr title="Uniform Resource Locator">URL</abbr></var> towards the <var>network service record</var>'s <code>eventsUrl</code> property.
  2.1397 +            </li>
  2.1398 +
  2.1399 +            <li>
  2.1400 +               If a non-200 OK response is received from the <abbr title="Hypertext Transfer Protocol">HTTP</abbr> SUBSCRIBE request then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
  2.1401 +            </li>
  2.1402 +
  2.1403 +            <li>
  2.1404 +               On receiving a valid 200 OK response, run the following steps:
  2.1405 +
  2.1406 +               <ol class="rule">
  2.1407 +                  <li>
  2.1408 +                     Let <var>callback ID</var> equal the string value of the first included <em>SID</em> header, if it exists.
  2.1409 +                  </li>
  2.1410 +                  <li>
  2.1411 +                     Let <var>timeout date</var> equal the sum of the current UTC date value plus the integer value of the first included <em>TIMEOUT</em> header, if it exists.
  2.1412 +                  </li>
  2.1413 +                  <li>
  2.1414 +                     Run the following steps aynchronously and continue to the step labeled <em>listen</em> below.
  2.1415 +                  </li>
  2.1416 +                  <li>
  2.1417 +                     <em>Refresh Subscription</em>: Run the following steps at a set interval (X) within the <a class="internalDFN" href="#dfn-user-agent">user agent</a>:
  2.1418 +
  2.1419 +                     <ol class="rule">
  2.1420 +                        <li>
  2.1421 +                           Let <var>current date</var> equal the current UTC date.
  2.1422 +                        </li>
  2.1423 +                        <li>
  2.1424 +                           If <var>current date</var> is less than the <var>timeout date</var> then continue to the step labeled <em>refresh subscription</em> above.
  2.1425 +                        </li>
  2.1426 +                        <li>
  2.1427 +                           Send a <abbr title="Hypertext Transfer Protocol">HTTP</abbr> SUBSCRIBE request with a <em>SID</em> header with the string value of <var>callback ID</var> and a <em>TIMEOUT</em> header
  2.1428 +                           with an integer value of <code>86400</code> towards the <var>network service record</var>'s <code>eventsUrl</code> property.
  2.1429 +                        </li>
  2.1430 +                        <li>
  2.1431 +                           On receiving a valid 200 OK, update <var>callback ID</var> with the string value of the first included <em>SID</em> header, if it exists. All other <abbr title="Hypertext Transfer Protocol">HTTP</abbr>
  2.1432 +                           responses should cause the <a class="internalDFN" href="#dfn-user-agent">user agent</a> to continue from the step labeled <em>refresh subscription</em> above.
  2.1433 +                        </li>
  2.1434 +                     </ol>
  2.1435 +
  2.1436 +                  </li>
  2.1437 +
  2.1438 +                  <li>
  2.1439 +                     <em>Listen</em>: For each <abbr title="Hypertext Transfer Protocol">HTTP</abbr> NOTIFY request received at the <var>callback <abbr title="Uniform Resource Locator">URL</abbr></var> the <a class="internalDFN" href="#dfn-user-agent">user agent</a> is to run the following steps:
  2.1440 +
  2.1441 +                     <ol class="rule">
  2.1442 +                        <li>
  2.1443 +                           Let <var>content clone</var> be the result of obtaining the message body of the <abbr title="Hypertext Transfer Protocol">HTTP</abbr> NOTIFY request. If <var>content clone</var> is empty, then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
  2.1444 +                        </li>
  2.1445 +                        <li>
  2.1446 +                          Create a new <code>message</code> event that uses the <a href="http://dev.w3.org/html5/postmsg/#messageevent" class="externalDFN"><code>MessageEvent</code></a> interface [<cite><a href="#bib-POSTMSG" class="bibref">POSTMSG</a></cite>], with the name <code>message</code>,
  2.1447 +                           which does not bubble, is not cancelable, and has no default action.
  2.1448 +                        </li>
  2.1449 +                        <li>
  2.1450 +                           Let the <code>data</code> attribute of the event have the DOMString value of <var>content clone</var>.
  2.1451 +                        </li>
  2.1452 +                        <li>
  2.1453 +                           <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task" class="externalDFN">Queue a task</a> to
  2.1454 +                            dispatch the newly created event at the current <a class="internalDFN" href="#networkservice"><code>NetworkService</code></a> object.
  2.1455 +                        </li>
  2.1456 +                     </ol>
  2.1457 +                  </li>
  2.1458 +
  2.1459 +               </ol>
  2.1460 +
  2.1461 +            </li>
  2.1462 +         </ol>
  2.1463 +
  2.1464 +         </section>
  2.1465 +
  2.1466 +         <section id="network-topology-monitoring">
  2.1467 +            <h3><span class="secno">7.3 </span>Network Topology Monitoring</h3>
  2.1468 +
  2.1469 +                  <div>
  2.1470 +                     <p>
  2.1471 +                        When the <a class="internalDFN" href="#dfn-user-agent">user agent</a> detects that the user has dropped from their connected network, then it <em title="must" class="rfc2119">must</em> run the following steps:
  2.1472 +                     </p>
  2.1473 +
  2.1474 +                     <ol class="rule">
  2.1475 +                        <li>
  2.1476 +                           Flush all entries from the <a class="internalDFN" href="#dfn-list-of-available-service-records">list of available service records</a>.
  2.1477 +                        </li>
  2.1478 +                        <li>
  2.1479 +                           For each <a href="#networkservice"><code>NetworkService</code></a> object currently active in the <a class="internalDFN" href="#dfn-user-agent">user agent</a> perform the following steps:
  2.1480 +
  2.1481 +                           <ol class="rule">
  2.1482 +                              <li>
  2.1483 +                                 Set the <a href="#dom-networkservice-readystate"><code>readyState</code></a> attribute to <code>2</code> (<a href="#dom-networkservice-UNAVAILABLE"><code>UNAVAILABLE</code></a>).
  2.1484 +                              </li>
  2.1485 +                              <li>
  2.1486 +                                 Create a new <code>readystatechange</code> event that uses the <code>Event</code> interface which does not bubble, is not cancelable, and has no default action.
  2.1487 +                              </li>
  2.1488 +                              <li>
  2.1489 +                                 <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task" class="externalDFN">Queue a task</a> to
  2.1490 +                                        dispatch the newly created event at the <a href="#networkservice"><code>NetworkService</code></a> object.
  2.1491 +                              </li>
  2.1492 +                           </ol>
  2.1493 +                        </li>
  2.1494 +                     </ol>
  2.1495 +
  2.1496 +                     <p>
  2.1497 +                        When the <a class="internalDFN" href="#dfn-user-agent">user agent</a> detects that the user has connected to a new network, then it <em title="should" class="rfc2119">should</em> run the following steps:
  2.1498 +                     </p>
  2.1499 +
  2.1500 +                     <ol class="rule">
  2.1501 +                        <li>
  2.1502 +                           Re-issue an <abbr title="Multicast DNS">mDNS</abbr> search and <abbr title="Simple Service Discovery Protocol">SSDP</abbr> discovery search and handle the responses according to the processing defined in <a href="#service-discovery">Section 6: Service Discovery</a>.
  2.1503 +                        </li>
  2.1504 +                     </ol>
  2.1505 +                  </div>
  2.1506 +         </section>
  2.1507 +      </section>
  2.1508 +
  2.1509 +   <section id="garbage-collection">
  2.1510 +      <!--OddPage--><h2><span class="secno">8. </span>Garbage collection</h2>
  2.1511 +
  2.1512 +      <p>
  2.1513 +         A <a class="internalDFN" href="#networkservice"><code>NetworkService</code></a> object containing a <code>url</code> parameter currently in the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a> <em title="must not" class="rfc2119">must not</em> be garbage collected.
  2.1514 +      </p>
  2.1515 +
  2.1516 +      <p>
  2.1517 +         Only when the user navigates away from the current browsing context can <a class="internalDFN" href="#networkservice"><code>NetworkService</code></a> objects be garbage-collected and records in the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a> be removed.
  2.1518 +      </p>
  2.1519 +
  2.1520 +   </section>
  2.1521 +
  2.1522 +
  2.1523 +    <section id="use-cases-and-requirements">
  2.1524 +      <!--OddPage--><h2><span class="secno">9. </span>Use Cases and Requirements</h2>
  2.1525 +
  2.1526 +      <p>This section covers what the requirements are for this <abbr title="Application Programming Interface">API</abbr>, as well as illustrates some use cases.</p>
  2.1527 +
  2.1528 +      <ul class="rule">
  2.1529 +         <li>
  2.1530 +            Once a user has given permission, user agents should provide the ability for Web pages to communicate directly with a Local-networked Service.
  2.1531 +            <ul class="rule">
  2.1532 +               <li>
  2.1533 +                  Example: A web-based TV remote control. A Web page wants to control the current user's TV, changing the programming shown or increasing/decreasing/muting the
  2.1534 +                  volume of the Local-networked Device. The Web page requests a service type that is known to be implemented by television sets to which it has the
  2.1535 +                  application logic to communicate. Local devices providing the request service types are discovered and presented to the user for authorization. The user selects one
  2.1536 +                  or more of the discovered television sets to be accessible to the current Web page and then clicks 'Share'. The Web page can now communicate directly with
  2.1537 +                  the user-authorized Local-networked services.
  2.1538 +               </li>
  2.1539 +            </ul>
  2.1540 +         </li>
  2.1541 +
  2.1542 +         <li>
  2.1543 +           Web pages should be able to communicate with Local-networked Services using the messaging channel supported by those Devices.
  2.1544 +           <ul class="rule">
  2.1545 +            <li>
  2.1546 +               Example: A Web page advertises that it is capable of controlling multiple Home Media Servers. The user can select their Home Media Server type from a drop-down list, at which point the
  2.1547 +               Web page sends a request to the user agent to connect with the associated service type of the Home Media Server. The Media Server selected implements a Web Socket channel for
  2.1548 +               bi-directional service communication and so the Web page opens a web socket to the requested Media Server and can communicate as required via that appropriate channel.
  2.1549 +            </li>
  2.1550 +           </ul>
  2.1551 +         </li>
  2.1552 +
  2.1553 +         <li>
  2.1554 +           Web pages should be able to communicate with Local-networked Services using the messaging format supported by those Devices.
  2.1555 +           <ul class="rule">
  2.1556 +            <li>
  2.1557 +               Example: A Web page advertises that it is capable of interacting with and controlling multiple types of Home Media Server. The user can select their Home Media Server type from a drop-down list or known Media Servers, at which point the
  2.1558 +               Web page sends a request to the user agent to connect with the associated service type (and, optionally, the associated event type) of the Home Media Server. The communiciation protocols supported by Home Media Servers typically vary
  2.1559 +               between <abbr title="Universal Plug-and-Play">UPnP</abbr>, JSON-RPC, Protocol Buffers or other messaging formats depending on the Home Media Server requested. The Web page is able to communicate with the user-selected Home Media
  2.1560 +               Server in the messaging format supported by that Device, which, in this example is a simple key/value pair text format.
  2.1561 +            </li>
  2.1562 +           </ul>
  2.1563 +         </li>
  2.1564 +
  2.1565 +         <li>
  2.1566 +           Web pages should not be able to communicate with Local-networked Services that have not been authorized by the user thereby maintaining the user's privacy.
  2.1567 +           <ul class="rule">
  2.1568 +            <li>
  2.1569 +               Example: A Web page requests access to one type of Local-networked service. The user authorizes access to that particular service. Other services running on that same device, and on other devices
  2.1570 +               within the network, should not be accessible to the current Web page.
  2.1571 +            </li>
  2.1572 +           </ul>
  2.1573 +         </li>
  2.1574 +
  2.1575 +         <li>
  2.1576 +           A user should be able to share one or more Local-networked Services based on a particular service type request from a Web page.
  2.1577 +           <ul class="rule">
  2.1578 +            <li>
  2.1579 +               Example: A Web page is capable of interacting with a specific profile of Local-networked Service. As such, it makes a request to the user agent to access those services, of which multiple matches
  2.1580 +               are found. The user is capable of selecting one or more of the discovered services to share with the Web page. The Web page can then implement a drag-and-drop interface for the user to drag specific
  2.1581 +               actions on to one or more of the authorized Local-networked Services.
  2.1582 +            </li>
  2.1583 +           </ul>
  2.1584 +         </li>
  2.1585 +
  2.1586 +         <li>
  2.1587 +           User agents should provide an <abbr title="Application Programming Interface">API</abbr> exposed to script that exposes the features above. The user is notified by UI anytime interaction with Local-networked Services is requested, giving the user
  2.1588 +           full ability to cancel or abort the transaction. The user selects the Local-networked Services to be connected to the current Web page, and can cancel these at any time. No invocations to
  2.1589 +           these APIs occur silently without user intervention.
  2.1590 +         </li>
  2.1591 +      </ul>
  2.1592 +    </section>
  2.1593 +
  2.1594 +          <section id="examples" class="informative appendix">
  2.1595 +             <!--OddPage--><h2><span class="secno">A. </span>Examples</h2><p><em>This section is non-normative.</em></p>
  2.1596 +
  2.1597 +           <div class="example">
  2.1598 +            <p>This sample code exposes a button. When clicked, this button is disabled and the user is prompted to offer a network service. The user may also select multiple network services. When the user has authorized a network service to be connected to the web page then the web page issues a simple command to get a list of all the albums stored on the connected media player service.
  2.1599 +            </p><p>The button is re-enabled only when the connected network service disconnects for whatever reason (the service becomes unavailable on the network, the user disconnects from their current network or the user revokes access to the service from the current web page). At this point the user can re-click the button to select a new network service to connect to the web page and the above steps are repeated.</p>
  2.1600 +            <p>The provided service type identifier and service interaction used in this example is based on the well-defined service type and messaging format supported by the <a href="http://xbmc.org/about/">XBMC Media Server</a>. </p>
  2.1601 +            <hr>
  2.1602 +            <pre class="highlight prettyprint"><span class="tag">&lt;input</span><span class="pln"> </span><span class="atn">type</span><span class="pun">=</span><span class="atv">"button"</span><span class="pln"> </span><span class="atn">value</span><span class="pun">=</span><span class="atv">"Start"</span><span class="pln"> </span><span class="atn">onclick</span><span class="pun">=</span><span class="atv">"</span><span class="pln">start</span><span class="pun">()</span><span class="atv">"</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"startBtn"</span><span class="tag">/&gt;</span><span class="pln">
  2.1603 +</span><span class="tag">&lt;div</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"debugconsole"</span><span class="tag">&gt;&lt;/div&gt;</span><span class="pln">
  2.1604 +
  2.1605 +</span><span class="tag">&lt;script&gt;</span><span class="pln">
  2.1606 + </span><span class="kwd">var</span><span class="pln"> startBtn </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">'startBtn'</span><span class="pun">),</span><span class="pln">
  2.1607 +     debug </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">'debugconsole'</span><span class="pun">);</span><span class="pln">
  2.1608 +
  2.1609 + </span><span class="kwd">function</span><span class="pln"> start</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1610 +   </span><span class="kwd">if</span><span class="pun">(</span><span class="pln">navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1611 +      navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">(</span><span class="str">'zeroconf:_xbmc-jsonrpc._tcp'</span><span class="pun">,</span><span class="pln"> gotXBMCService</span><span class="pun">,</span><span class="pln"> error</span><span class="pun">);</span><span class="pln">
  2.1612 +      startBtn</span><span class="pun">.</span><span class="pln">disabled </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">;</span><span class="pln">
  2.1613 +   </span><span class="pun">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1614 +      debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;Service Discovery API not supported!"</span><span class="pun">;</span><span class="pln">
  2.1615 +   </span><span class="pun">}</span><span class="pln">
  2.1616 + </span><span class="pun">}</span><span class="pln">
  2.1617 +
  2.1618 + </span><span class="kwd">function</span><span class="pln"> gotXBMCService</span><span class="pun">(</span><span class="pln">services</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1619 +
  2.1620 +</span><span class="com">// Listen for service disconnect messages</span><span class="pln">
  2.1621 +
  2.1622 +   services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'readystatechange'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">(</span><span class="pln"> e </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1623 +     </span><span class="kwd">if</span><span class="pun">(</span><span class="pln">services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">readyState </span><span class="pun">===</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">UNAVAILABLE</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1624 +       debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" disconnected."</span><span class="pun">;</span><span class="pln">
  2.1625 +       startBtn</span><span class="pun">.</span><span class="pln">disabled </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span><span class="pln">
  2.1626 +     </span><span class="pun">}</span><span class="pln">
  2.1627 +   </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
  2.1628 +
  2.1629 +</span><span class="com">// Send a service message to get albums list (and process the service response)</span><span class="pln">
  2.1630 +
  2.1631 +   </span><span class="kwd">var</span><span class="pln"> svcXhr </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">XMLHttpRequest</span><span class="pun">();</span><span class="pln">
  2.1632 +   svcXhr</span><span class="pun">.</span><span class="pln">open</span><span class="pun">(</span><span class="str">"POST"</span><span class="pun">,</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">url </span><span class="pun">+</span><span class="pln"> </span><span class="str">"/getAlbums"</span><span class="pun">);</span><span class="pln"> </span><span class="com">// services[0].url and its subresources have been</span><span class="pln">
  2.1633 +                                                        </span><span class="com">// whitelisted for cross-site XHR use in this</span><span class="pln">
  2.1634 +                                                        </span><span class="com">// current browsing context.</span><span class="pln">
  2.1635 +
  2.1636 +   svcXhr</span><span class="pun">.</span><span class="pln">setRequestHeader</span><span class="pun">(</span><span class="str">'Content-Type'</span><span class="pun">,</span><span class="pln"> </span><span class="str">'application/json-rpc'</span><span class="pun">);</span><span class="pln">
  2.1637 +
  2.1638 +   svcXhr</span><span class="pun">.</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'readystatechange'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">(</span><span class="pln"> response </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1639 +     </span><span class="kwd">if</span><span class="pun">(</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">readyState </span><span class="pun">!=</span><span class="pln"> </span><span class="lit">4</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">status </span><span class="pun">!=</span><span class="pln"> </span><span class="lit">200</span><span class="pln"> </span><span class="pun">)</span><span class="pln">
  2.1640 +        </span><span class="kwd">return</span><span class="pun">;</span><span class="pln">
  2.1641 +     debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" response received: "</span><span class="pun">;</span><span class="pln">
  2.1642 +     debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> JSON</span><span class="pun">.</span><span class="pln">parse</span><span class="pun">(</span><span class="pln">response</span><span class="pun">.</span><span class="pln">responseText</span><span class="pun">);</span><span class="pln">
  2.1643 +   </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
  2.1644 +
  2.1645 +   </span><span class="kwd">var</span><span class="pln"> svcMsg </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="pln">
  2.1646 +     </span><span class="pun">{</span><span class="pln"> </span><span class="str">"jsonrpc"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"2.0"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"method"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"AudioLibrary.GetAlbums"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"params"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">{</span><span class="pln"> </span><span class="str">"genreid"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">-</span><span class="lit">1</span><span class="pun">,</span><span class="pln">
  2.1647 +         </span><span class="str">"artistid"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">-</span><span class="lit">1</span><span class="pun">,</span><span class="pln"> </span><span class="str">"start"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">-</span><span class="lit">1</span><span class="pun">,</span><span class="pln"> </span><span class="str">"end"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">-</span><span class="lit">1</span><span class="pln"> </span><span class="pun">},</span><span class="pln"> </span><span class="str">"id"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"1"</span><span class="pln"> </span><span class="pun">}</span><span class="pln">
  2.1648 +   </span><span class="pun">];</span><span class="pln">
  2.1649 +
  2.1650 +   svcXhr</span><span class="pun">.</span><span class="pln">send</span><span class="pun">(</span><span class="pln">JSON</span><span class="pun">.</span><span class="pln">stringify</span><span class="pun">(</span><span class="pln">svcMsg</span><span class="pun">));</span><span class="pln">
  2.1651 +   debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" request sent: "</span><span class="pun">;</span><span class="pln">
  2.1652 +   debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> JSON</span><span class="pun">.</span><span class="pln">stringify</span><span class="pun">(</span><span class="pln">svcMsg</span><span class="pun">);</span><span class="pln">
  2.1653 +
  2.1654 + </span><span class="pun">}</span><span class="pln">
  2.1655 +
  2.1656 + </span><span class="kwd">function</span><span class="pln"> error</span><span class="pun">(</span><span class="pln"> err </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1657 +   debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;An error occurred obtaining a local network service."</span><span class="pun">;</span><span class="pln">
  2.1658 +   startBtn</span><span class="pun">.</span><span class="pln">disabled </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span><span class="pln">
  2.1659 + </span><span class="pun">}</span><span class="pln">
  2.1660 +</span><span class="tag">&lt;/script&gt;</span></pre>
  2.1661 +           </div>
  2.1662 +
  2.1663 +           <div class="example">
  2.1664 +            <p>
  2.1665 +             This sample exposes a drop-down list containing a number of common Home-based audio devices. When the user selects an audio device from the list provided, they are prompted to authorize a network service
  2.1666 +             based on the service type requested. The user may also select multiple network services matching the selected service type.
  2.1667 +             In this example, the user selects their make as being <var>Sony</var> and their model as being <var>Bravia S1000</var> from which the Web page can derive a service type
  2.1668 +             (<var>urn:schemas-upnp-org:service:RenderingControl:1</var>).
  2.1669 +             <br><br>Once the user has authorized the device, the web page sends a simple mute command according to the messaging format supported by the device.
  2.1670 +            </p>
  2.1671 +            <hr>
  2.1672 +            <pre class="highlight prettyprint"><span class="tag">&lt;select</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"make"</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"make"</span><span class="tag">&gt;</span><span class="pln">
  2.1673 +  </span><span class="tag">&lt;option</span><span class="pln"> </span><span class="atn">selected</span><span class="pun">=</span><span class="atv">"selected"</span><span class="pln"> </span><span class="atn">disabled</span><span class="pun">=</span><span class="atv">"disabled"</span><span class="tag">&gt;</span><span class="pln">Select make</span><span class="tag">&lt;/option&gt;</span><span class="pln">
  2.1674 +  </span><span class="tag">&lt;option&gt;</span><span class="pln">Sony</span><span class="tag">&lt;/option&gt;</span><span class="pln">
  2.1675 +  </span><span class="tag">&lt;option&gt;</span><span class="pln">Philips</span><span class="tag">&lt;/option&gt;</span><span class="pln">
  2.1676 +  </span><span class="tag">&lt;option&gt;</span><span class="pln">Alba</span><span class="tag">&lt;/option&gt;</span><span class="pln">
  2.1677 +</span><span class="tag">&lt;/select&gt;</span><span class="pln">
  2.1678 +</span><span class="tag">&lt;select</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"model"</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"model"</span><span class="tag">&gt;&lt;/select&gt;</span><span class="pln">
  2.1679 +</span><span class="tag">&lt;div</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"debugconsole"</span><span class="tag">&gt;&lt;/div&gt;</span><span class="pln">
  2.1680 +
  2.1681 +</span><span class="tag">&lt;script&gt;</span><span class="pln">
  2.1682 +  </span><span class="kwd">var</span><span class="pln"> debug </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">'debugconsole'</span><span class="pun">);</span><span class="pln">
  2.1683 +
  2.1684 +  </span><span class="kwd">var</span><span class="pln"> models </span><span class="pun">=</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1685 +    </span><span class="str">"Sony"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">[</span><span class="pln">
  2.1686 +      </span><span class="pun">{</span><span class="str">"name"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"Bravia TV S1000"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"type"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"upnp"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"service"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"urn:schemas-upnp-org:service:RenderingControl:1"</span><span class="pln"> </span><span class="pun">},</span><span class="pln">
  2.1687 +      </span><span class="pun">{</span><span class="str">"name"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"Bravia TV S2000"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"type"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"zeroconf"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"service"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"_mediarenderer._http._tcp"</span><span class="pln"> </span><span class="pun">},</span><span class="pln">
  2.1688 +      </span><span class="pun">{</span><span class="str">"name"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"HiFi WD10"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"type"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"upnp"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"service"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"urn:schemas-upnp-org:service:RenderingControl:1"</span><span class="pln"> </span><span class="pun">}</span><span class="pln">
  2.1689 +    </span><span class="pun">],</span><span class="pln">
  2.1690 +    </span><span class="str">"Philips"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">[</span><span class="pln"> </span><span class="com">/* ... */</span><span class="pln"> </span><span class="pun">],</span><span class="pln">
  2.1691 +    </span><span class="str">"Alba"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">[</span><span class="pln"> </span><span class="com">/* ... */</span><span class="pln"> </span><span class="pun">]</span><span class="pln">
  2.1692 +  </span><span class="pun">};</span><span class="pln">
  2.1693 +
  2.1694 +  </span><span class="kwd">var</span><span class="pln"> makeEl </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">"make"</span><span class="pun">),</span><span class="pln">
  2.1695 +      modelEl </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">"model"</span><span class="pun">);</span><span class="pln">
  2.1696 +
  2.1697 +  makeEl</span><span class="pun">.</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'change'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1698 +    modelEl</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">=</span><span class="pln"> </span><span class="str">""</span><span class="pun">;</span><span class="pln"> </span><span class="com">// reset</span><span class="pln">
  2.1699 +    </span><span class="kwd">var</span><span class="pln"> defaultOption </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">createElement</span><span class="pun">(</span><span class="str">"option"</span><span class="pun">);</span><span class="pln">
  2.1700 +    defaultOption</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">=</span><span class="pln"> </span><span class="str">"Select model"</span><span class="pun">;</span><span class="pln">
  2.1701 +    defaultOption</span><span class="pun">.</span><span class="pln">setAttribute</span><span class="pun">(</span><span class="str">"disabled"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"disabled"</span><span class="pun">);</span><span class="pln">
  2.1702 +    defaultOption</span><span class="pun">.</span><span class="pln">setAttribute</span><span class="pun">(</span><span class="str">"selected"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"selected"</span><span class="pun">);</span><span class="pln">
  2.1703 +    modelEl</span><span class="pun">.</span><span class="pln">appendChild</span><span class="pun">(</span><span class="pln">defaultOption</span><span class="pun">);</span><span class="pln">
  2.1704 +    </span><span class="kwd">for</span><span class="pun">(</span><span class="kwd">var</span><span class="pln"> i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> l </span><span class="pun">=</span><span class="pln"> models</span><span class="pun">[</span><span class="pln">makeEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">].</span><span class="pln">length</span><span class="pun">;</span><span class="pln"> i </span><span class="pun">&lt;</span><span class="pln"> l</span><span class="pun">;</span><span class="pln"> i</span><span class="pun">++)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1705 +      </span><span class="kwd">var</span><span class="pln"> option </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">createElement</span><span class="pun">(</span><span class="str">"option"</span><span class="pun">);</span><span class="pln">
  2.1706 +      option</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">=</span><span class="pln"> models</span><span class="pun">[</span><span class="pln">makeEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">][</span><span class="pln">i</span><span class="pun">][</span><span class="str">"name"</span><span class="pun">];</span><span class="pln">
  2.1707 +      option</span><span class="pun">.</span><span class="pln">setAttribute</span><span class="pun">(</span><span class="str">"value"</span><span class="pun">,</span><span class="pln"> models</span><span class="pun">[</span><span class="pln">makeEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">][</span><span class="pln">i</span><span class="pun">][</span><span class="str">"type"</span><span class="pun">]</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> </span><span class="str">":"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> models</span><span class="pun">[</span><span class="pln">makeEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">][</span><span class="pln">i</span><span class="pun">][</span><span class="str">"service"</span><span class="pun">]);</span><span class="pln">
  2.1708 +      modelEl</span><span class="pun">.</span><span class="pln">appendChild</span><span class="pun">(</span><span class="pln">option</span><span class="pun">);</span><span class="pln">
  2.1709 +    </span><span class="pun">}</span><span class="pln">
  2.1710 +  </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
  2.1711 +
  2.1712 +  modelEl</span><span class="pun">.</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'change'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1713 +    </span><span class="kwd">if</span><span class="pun">(</span><span class="pln">navigator</span><span class="pun">.</span><span class="pln">getNetworkServices </span><span class="pun">&amp;&amp;</span><span class="pln">
  2.1714 +         modelEl</span><span class="pun">.</span><span class="pln">value </span><span class="pun">==</span><span class="pln"> </span><span class="str">"upnp:urn:schemas-upnp-org:service:RenderingControl:1"</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1715 +      navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">(</span><span class="pln">modelEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">,</span><span class="pln"> successCallback</span><span class="pun">,</span><span class="pln"> errorCallback</span><span class="pun">);</span><span class="pln">
  2.1716 +    </span><span class="pun">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">modelEl</span><span class="pun">.</span><span class="pln">value </span><span class="pun">==</span><span class="pln"> </span><span class="str">"zeroconf:_mediarenderer._http._tcp"</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1717 +      debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;Service type is not implemented by this application."</span><span class="pun">;</span><span class="pln">
  2.1718 +    </span><span class="pun">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1719 +      debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;Service Discovery is not supported!"</span><span class="pun">;</span><span class="pln">
  2.1720 +    </span><span class="pun">}</span><span class="pln">
  2.1721 +  </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
  2.1722 +</span><span class="tag">&lt;/script&gt;</span><span class="pln">
  2.1723 +
  2.1724 +</span><span class="tag">&lt;script&gt;</span><span class="pln">
  2.1725 +  </span><span class="kwd">function</span><span class="pln"> successCallback</span><span class="pun">(</span><span class="pln"> services </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1726 +
  2.1727 +  </span><span class="com">// Listen for service push messages</span><span class="pln">
  2.1728 +
  2.1729 +    services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'message'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">(</span><span class="pln"> msg </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1730 +         debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" event received: "</span><span class="pun">;</span><span class="pln">
  2.1731 +         debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> msg</span><span class="pun">.</span><span class="pln">data</span><span class="pun">;</span><span class="pln">
  2.1732 +    </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
  2.1733 +
  2.1734 + </span><span class="com">// Send a control signal to mute the service audio</span><span class="pln">
  2.1735 +
  2.1736 +    </span><span class="kwd">var</span><span class="pln"> svcXhr </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">XMLHttpRequest</span><span class="pun">();</span><span class="pln">
  2.1737 +    svcXhr</span><span class="pun">.</span><span class="pln">open</span><span class="pun">(</span><span class="str">"POST"</span><span class="pun">,</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">url</span><span class="pun">);</span><span class="pln"> </span><span class="com">// services[0].url and its</span><span class="pln">
  2.1738 +                                          </span><span class="com">// subresources have been whitelisted for</span><span class="pln">
  2.1739 +                                          </span><span class="com">// cross-site XHR use in this current</span><span class="pln">
  2.1740 +                                          </span><span class="com">// browsing context.</span><span class="pln">
  2.1741 +
  2.1742 +    svcXhr</span><span class="pun">.</span><span class="pln">setRequestHeader</span><span class="pun">(</span><span class="str">'SOAPAction'</span><span class="pun">,</span><span class="pln"> </span><span class="str">'urn:schemas-upnp-org:service:RenderingControl:1#SetMute'</span><span class="pun">);</span><span class="pln">
  2.1743 +    svcXhr</span><span class="pun">.</span><span class="pln">setRequestHeader</span><span class="pun">(</span><span class="str">'Content-Type'</span><span class="pun">,</span><span class="pln"> </span><span class="str">'text/xml; charset="utf-8";'</span><span class="pun">);</span><span class="pln">
  2.1744 +
  2.1745 +    svcXhr</span><span class="pun">.</span><span class="pln">onreadystatechange </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">(</span><span class="pln"> response </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1746 +      </span><span class="kwd">if</span><span class="pun">(</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">readyState </span><span class="pun">!=</span><span class="pln"> </span><span class="lit">4</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">status </span><span class="pun">!=</span><span class="pln"> </span><span class="lit">200</span><span class="pln"> </span><span class="pun">)</span><span class="pln">
  2.1747 +        </span><span class="kwd">return</span><span class="pun">;</span><span class="pln">
  2.1748 +      debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" response received: "</span><span class="pun">;</span><span class="pln">
  2.1749 +      debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">responseXML</span><span class="pun">;</span><span class="pln">
  2.1750 +    </span><span class="pun">}</span><span class="pln">
  2.1751 +
  2.1752 +    </span><span class="com">// Service messaging to mute the provided service</span><span class="pln">
  2.1753 +    </span><span class="kwd">var</span><span class="pln"> svcMsg </span><span class="pun">=</span><span class="pln"> </span><span class="str">'&lt;?xml version="1.0" encoding="utf-8"?&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1754 +                 </span><span class="str">'&lt;s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" '</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1755 +                   </span><span class="str">'xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1756 +                   </span><span class="str">'&lt;s:Body&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1757 +                     </span><span class="str">'&lt;u:SetMute xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1758 +                       </span><span class="str">'&lt;InstanceID&gt;0&lt;/InstanceID&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1759 +                       </span><span class="str">'&lt;Channel&gt;Master&lt;/Channel&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1760 +                       </span><span class="str">'&lt;DesiredMute&gt;true&lt;/DesiredMute&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1761 +                     </span><span class="str">'&lt;/u:SetMute&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1762 +                   </span><span class="str">'&lt;/s:Body&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
  2.1763 +                 </span><span class="str">'&lt;/s:Envelope&gt;'</span><span class="pun">;</span><span class="pln">
  2.1764 +
  2.1765 +    svcXhr</span><span class="pun">.</span><span class="pln">send</span><span class="pun">(</span><span class="pln">svcMsg</span><span class="pun">);</span><span class="pln">
  2.1766 +    debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" request sent: "</span><span class="pun">;</span><span class="pln">
  2.1767 +    debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> svcMsg</span><span class="pun">;</span><span class="pln">
  2.1768 +  </span><span class="pun">}</span><span class="pln">
  2.1769 +
  2.1770 +  </span><span class="kwd">function</span><span class="pln"> errorCallback</span><span class="pun">(</span><span class="pln"> error </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
  2.1771 +    debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;An error occurred: "</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> error</span><span class="pun">.</span><span class="pln">code</span><span class="pun">;</span><span class="pln">
  2.1772 +  </span><span class="pun">}</span><span class="pln">
  2.1773 +</span><span class="tag">&lt;/script&gt;</span></pre>
  2.1774 +          </div>
  2.1775 +
  2.1776 +       </section>
  2.1777 +
  2.1778 +    <section id="acknowledgements">
  2.1779 +      <!--OddPage--><h2><span class="secno">B. </span>Acknowledgements</h2>
  2.1780 +
  2.1781 +      <p>Thanks are expressed by the editor to the following individuals for their feedback on this specification to date (in alphabetical order):
  2.1782 +      <br><br>
  2.1783 +      Gar Bergstedt, Lars-Erik Bolstad, Hari G Kumar, Bob Lund, Giuseppe Pascale, Marcin Simonides, Clarke Stevens, Christian Söderström, Mark Vickers, ...</p>
  2.1784 +
  2.1785 +      <p>Thanks are also expressed by the editor to the following organizations and groups for their support in producing this specification to date (in alphabetical order):
  2.1786 +      <br><br>
  2.1787 +      CableLabs, Opera Software ASA, <abbr title="World Wide Web Consortium">W3C</abbr> Device APIs Working Group, <abbr title="World Wide Web Consortium">W3C</abbr> Web and TV Interest Group, ...</p>
  2.1788 +    </section>
  2.1789 +
  2.1790 +
  2.1791 +<section class="appendix" id="references"><!--OddPage--><h2><span class="secno">C. </span>References</h2><section id="normative-references"><h3><span class="secno">C.1 </span>Normative references</h3><dl class="bibliography"><dt id="bib-DNS-SD">[DNS-SD]</dt><dd>S. Cheshire; M. Krochmal. <a href="http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt"><cite>DNS-Based Service Discovery.</cite></a> 27 February 2011. IETF Draft. URL: <a href="http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt">http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt</a>
  2.1792 +</dd><dt id="bib-DOM4">[DOM4]</dt><dd>Anne van Kesteren; Aryeh Gregor; Ms2ger. <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html/"><cite>DOM4.</cite></a> URL: <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html/">http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html/</a> 
  2.1793 +</dd><dt id="bib-HTML5">[HTML5]</dt><dd>Ian Hickson; David Hyatt. <a href="http://www.w3.org/TR/html5"><cite>HTML5.</cite></a> 25 May 2011. W3C Working Draft. (Work in progress.) URL: <a href="http://www.w3.org/TR/html5">http://www.w3.org/TR/html5</a> 
  2.1794 +</dd><dt id="bib-MDNS">[MDNS]</dt><dd>S. Cheshire; M. Krochmal. <a href="http://files.multicastdns.org/draft-cheshire-dnsext-multicastdns.txt"><cite>Multicast DNS.</cite></a> 14 February 2011. IETF Draft. URL: <a href="http://files.multicastdns.org/draft-cheshire-dnsext-multicastdns.txt">http://files.multicastdns.org/draft-cheshire-dnsext-multicastdns.txt</a>
  2.1795 +</dd><dt id="bib-POSTMSG">[POSTMSG]</dt><dd>Ian Hickson. <a href="http://dev.w3.org/html5/postmsg"><cite>HTML5 Web Messaging.</cite></a> URL: <a href="http://dev.w3.org/html5/postmsg">http://dev.w3.org/html5/postmsg</a>
  2.1796 +</dd><dt id="bib-RFC2119">[RFC2119]</dt><dd>S. Bradner. <a href="http://www.ietf.org/rfc/rfc2119.txt"><cite>Key words for use in RFCs to Indicate Requirement Levels.</cite></a> March 1997. Internet RFC 2119.  URL: <a href="http://www.ietf.org/rfc/rfc2119.txt">http://www.ietf.org/rfc/rfc2119.txt</a> 
  2.1797 +</dd><dt id="bib-UPNP-DEVICEARCH11">[UPNP-DEVICEARCH11]</dt><dd><a href="http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf"><cite>UPnP Device Architecture 1.1</cite></a>. 15 October 2008. UPnP Forum. PDF document. URL: <a href="http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf">http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf</a>
  2.1798 +</dd><dt id="bib-WEBIDL">[WEBIDL]</dt><dd>Cameron McCormack. <a href="http://www.w3.org/TR/2011/WD-WebIDL-20110927/"><cite>Web IDL.</cite></a> 27 September 2011. W3C Working Draft. (Work in progress.) URL: <a href="http://www.w3.org/TR/2011/WD-WebIDL-20110927/">http://www.w3.org/TR/2011/WD-WebIDL-20110927/</a> 
  2.1799 +</dd><dt id="bib-ZEROCONF">[ZEROCONF]</dt><dd>S. Cheshire; B. Aboba; E. Guttman. <a href="http://files.zeroconf.org/rfc3927.txt"><cite>Dynamic Configuration of IPv4 Link-Local Addresses.</cite></a> May 2005. IETF Draft. URL: <a href="http://files.zeroconf.org/rfc3927.txt">http://files.zeroconf.org/rfc3927.txt</a>
  2.1800 +</dd></dl></section><section id="informative-references"><h3><span class="secno">C.2 </span>Informative references</h3><p>No informative references.</p></section></section></body></html>
  2.1801 \ No newline at end of file
     3.1 --- a/discovery-api/Overview.src.html	Wed Aug 22 15:45:40 2012 +0200
     3.2 +++ b/discovery-api/Overview.src.html	Wed Aug 22 16:00:54 2012 +0200
     3.3 @@ -3,7 +3,6 @@
     3.4    <head>
     3.5      <title>Networked Service Discovery and Messaging</title>
     3.6      <meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
     3.7 -    <!-- This spec has been compiled with ReSpec v2 -->
     3.8      <script type="text/javascript" class='remove'>
     3.9        var respecConfig = {
    3.10            specStatus:   "ED",
    3.11 @@ -26,7 +25,6 @@
    3.12                companyURL: "http://cablelabs.com/"
    3.13              }
    3.14            ],
    3.15 -          //extraCSS:             ["./css/respec2.css"],
    3.16            noIDLIn:      true,
    3.17            wg:           "Device APIs and Policy Working Group",
    3.18            wgURI:        "http://www.w3.org/2009/dap/",
    3.19 @@ -35,359 +33,7 @@
    3.20        };
    3.21      </script>
    3.22  
    3.23 -    <style type="text/css">
    3.24 -      /**
    3.25 -       * SyntaxHighlighter
    3.26 -       * http://alexgorbatchev.com/SyntaxHighlighter
    3.27 -       *
    3.28 -       * SyntaxHighlighter is donationware. If you are using it, please donate.
    3.29 -       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
    3.30 -       *
    3.31 -       * @version
    3.32 -       * 3.0.83 (July 02 2010)
    3.33 -       *
    3.34 -       * @copyright
    3.35 -       * Copyright (C) 2004-2010 Alex Gorbatchev.
    3.36 -       *
    3.37 -       * @license
    3.38 -       * Dual licensed under the MIT and GPL licenses.
    3.39 -       */
    3.40 -      .syntaxhighlighter a,
    3.41 -      .syntaxhighlighter div,
    3.42 -      .syntaxhighlighter code,
    3.43 -      .syntaxhighlighter table,
    3.44 -      .syntaxhighlighter table td,
    3.45 -      .syntaxhighlighter table tr,
    3.46 -      .syntaxhighlighter table tbody,
    3.47 -      .syntaxhighlighter table thead,
    3.48 -      .syntaxhighlighter table caption,
    3.49 -      .syntaxhighlighter textarea {
    3.50 -        -moz-border-radius: 0 0 0 0 !important;
    3.51 -        -webkit-border-radius: 0 0 0 0 !important;
    3.52 -        background: none !important;
    3.53 -        border: 0 !important;
    3.54 -        bottom: auto !important;
    3.55 -        float: none !important;
    3.56 -        height: auto !important;
    3.57 -        left: auto !important;
    3.58 -        line-height: 1.1em !important;
    3.59 -        margin: 0 !important;
    3.60 -        outline: 0 !important;
    3.61 -        overflow: visible !important;
    3.62 -        padding: 0 !important;
    3.63 -        position: static !important;
    3.64 -        right: auto !important;
    3.65 -        text-align: left !important;
    3.66 -        top: auto !important;
    3.67 -        vertical-align: baseline !important;
    3.68 -        width: auto !important;
    3.69 -        box-sizing: content-box !important;
    3.70 -        font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
    3.71 -        font-weight: normal !important;
    3.72 -        font-style: normal !important;
    3.73 -        font-size: 1em !important;
    3.74 -        min-height: inherit !important;
    3.75 -        min-height: auto !important;
    3.76 -      }
    3.77 -
    3.78 -      .syntaxhighlighter {
    3.79 -        width: 100% !important;
    3.80 -        margin: 1em 0 1em 0 !important;
    3.81 -        position: relative !important;
    3.82 -        overflow: auto !important;
    3.83 -        font-size: 0.8em !important;
    3.84 -      }
    3.85 -      .syntaxhighlighter.source {
    3.86 -        overflow: hidden !important;
    3.87 -      }
    3.88 -      .syntaxhighlighter .bold {
    3.89 -        font-weight: bold !important;
    3.90 -      }
    3.91 -      .syntaxhighlighter .italic {
    3.92 -        font-style: italic !important;
    3.93 -      }
    3.94 -      .syntaxhighlighter .line {
    3.95 -        white-space: pre !important;
    3.96 -      }
    3.97 -      .syntaxhighlighter table {
    3.98 -        width: 100% !important;
    3.99 -      }
   3.100 -      .syntaxhighlighter table caption {
   3.101 -        text-align: left !important;
   3.102 -        padding: .5em 0 0.5em 1em !important;
   3.103 -      }
   3.104 -      .syntaxhighlighter table td.code {
   3.105 -        width: 100% !important;
   3.106 -      }
   3.107 -      .syntaxhighlighter table td.code .container {
   3.108 -        position: relative !important;
   3.109 -      }
   3.110 -      .syntaxhighlighter table td.code .container textarea {
   3.111 -        box-sizing: border-box !important;
   3.112 -        position: absolute !important;
   3.113 -        left: 0 !important;
   3.114 -        top: 0 !important;
   3.115 -        width: 100% !important;
   3.116 -        height: 100% !important;
   3.117 -        border: none !important;
   3.118 -
   3.119 -        padding-left: 1em !important;
   3.120 -        overflow: hidden !important;
   3.121 -        white-space: pre !important;
   3.122 -      }
   3.123 -      .syntaxhighlighter table td.gutter .line {
   3.124 -        text-align: right !important;
   3.125 -        padding: 0 0.5em 0 1em !important;
   3.126 -      }
   3.127 -      .syntaxhighlighter table td.code .line {
   3.128 -        padding: 0 1em !important;
   3.129 -      }
   3.130 -      .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
   3.131 -        padding-left: 0em !important;
   3.132 -      }
   3.133 -      .syntaxhighlighter.show {
   3.134 -        display: block !important;
   3.135 -      }
   3.136 -      .syntaxhighlighter.collapsed table {
   3.137 -        display: none !important;
   3.138 -      }
   3.139 -      .syntaxhighlighter.collapsed .toolbar {
   3.140 -        padding: 0.1em 0.8em 0em 0.8em !important;
   3.141 -        font-size: 1em !important;
   3.142 -        position: static !important;
   3.143 -        width: auto !important;
   3.144 -        height: auto !important;
   3.145 -      }
   3.146 -      .syntaxhighlighter.collapsed .toolbar span {
   3.147 -        display: inline !important;
   3.148 -        margin-right: 1em !important;
   3.149 -      }
   3.150 -      .syntaxhighlighter.collapsed .toolbar span a {
   3.151 -        padding: 0 !important;
   3.152 -        display: none !important;
   3.153 -      }
   3.154 -      .syntaxhighlighter.collapsed .toolbar span a.expandSource {
   3.155 -        display: inline !important;
   3.156 -      }
   3.157 -      .syntaxhighlighter .toolbar {
   3.158 -        position: absolute !important;
   3.159 -        right: 1px !important;
   3.160 -        top: 1px !important;
   3.161 -        width: 11px !important;
   3.162 -        height: 11px !important;
   3.163 -        font-size: 10px !important;
   3.164 -        z-index: 10 !important;
   3.165 -      }
   3.166 -      .syntaxhighlighter .toolbar span.title {
   3.167 -        display: inline !important;
   3.168 -      }
   3.169 -      .syntaxhighlighter .toolbar a {
   3.170 -        display: block !important;
   3.171 -        text-align: center !important;
   3.172 -        text-decoration: none !important;
   3.173 -        padding-top: 1px !important;
   3.174 -      }
   3.175 -      .syntaxhighlighter .toolbar a.expandSource {
   3.176 -        display: none !important;
   3.177 -      }
   3.178 -      .syntaxhighlighter.ie {
   3.179 -        font-size: .9em !important;
   3.180 -        padding: 1px 0 1px 0 !important;
   3.181 -      }
   3.182 -      .syntaxhighlighter.ie .toolbar {
   3.183 -        line-height: 8px !important;
   3.184 -      }
   3.185 -      .syntaxhighlighter.ie .toolbar a {
   3.186 -        padding-top: 0px !important;
   3.187 -      }
   3.188 -      .syntaxhighlighter.printing .line.alt1 .content,
   3.189 -      .syntaxhighlighter.printing .line.alt2 .content,
   3.190 -      .syntaxhighlighter.printing .line.highlighted .number,
   3.191 -      .syntaxhighlighter.printing .line.highlighted.alt1 .content,
   3.192 -      .syntaxhighlighter.printing .line.highlighted.alt2 .content {
   3.193 -        background: none !important;
   3.194 -      }
   3.195 -      .syntaxhighlighter.printing .line .number {
   3.196 -        color: #bbbbbb !important;
   3.197 -      }
   3.198 -      .syntaxhighlighter.printing .line .content {
   3.199 -        color: black !important;
   3.200 -      }
   3.201 -      .syntaxhighlighter.printing .toolbar {
   3.202 -        display: none !important;
   3.203 -      }
   3.204 -      .syntaxhighlighter.printing a {
   3.205 -        text-decoration: none !important;
   3.206 -      }
   3.207 -      .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
   3.208 -        color: black !important;
   3.209 -      }
   3.210 -      .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
   3.211 -        color: #008200 !important;
   3.212 -      }
   3.213 -      .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
   3.214 -        color: blue !important;
   3.215 -      }
   3.216 -      .syntaxhighlighter.printing .keyword {
   3.217 -        color: #006699 !important;
   3.218 -        font-weight: bold !important;
   3.219 -      }
   3.220 -      .syntaxhighlighter.printing .preprocessor {
   3.221 -        color: gray !important;
   3.222 -      }
   3.223 -      .syntaxhighlighter.printing .variable {
   3.224 -        color: #aa7700 !important;
   3.225 -      }
   3.226 -      .syntaxhighlighter.printing .value {
   3.227 -        color: #009900 !important;
   3.228 -      }
   3.229 -      .syntaxhighlighter.printing .functions {
   3.230 -        color: #ff1493 !important;
   3.231 -      }
   3.232 -      .syntaxhighlighter.printing .constants {
   3.233 -        color: #0066cc !important;
   3.234 -      }
   3.235 -      .syntaxhighlighter.printing .script {
   3.236 -        font-weight: bold !important;
   3.237 -      }
   3.238 -      .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
   3.239 -        color: gray !important;
   3.240 -      }
   3.241 -      .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
   3.242 -        color: #ff1493 !important;
   3.243 -      }
   3.244 -      .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
   3.245 -        color: red !important;
   3.246 -      }
   3.247 -      .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
   3.248 -        color: black !important;
   3.249 -      }
   3.250 -    </style>
   3.251 -    <style type="text/css">
   3.252 -      /**
   3.253 -       * SyntaxHighlighter
   3.254 -       * http://alexgorbatchev.com/SyntaxHighlighter
   3.255 -       *
   3.256 -       * SyntaxHighlighter is donationware. If you are using it, please donate.
   3.257 -       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
   3.258 -       *
   3.259 -       * @version
   3.260 -       * 3.0.83 (July 02 2010)
   3.261 -       *
   3.262 -       * @copyright
   3.263 -       * Copyright (C) 2004-2010 Alex Gorbatchev.
   3.264 -       *
   3.265 -       * @license
   3.266 -       * Dual licensed under the MIT and GPL licenses.
   3.267 -       */
   3.268 -      .syntaxhighlighter {
   3.269 -        background-color: none !important;
   3.270 -      }
   3.271 -      .syntaxhighlighter .line.alt1 {
   3.272 -        background-color: none !important;
   3.273 -      }
   3.274 -      .syntaxhighlighter .line.alt2 {
   3.275 -        background-color: none !important;
   3.276 -      }
   3.277 -      .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
   3.278 -        background-color: none !important;
   3.279 -      }
   3.280 -      .syntaxhighlighter .line.highlighted.number {
   3.281 -        color: black !important;
   3.282 -      }
   3.283 -      .syntaxhighlighter table caption {
   3.284 -        color: black !important;
   3.285 -      }
   3.286 -      .syntaxhighlighter .gutter {
   3.287 -        color: #afafaf !important;
   3.288 -      }
   3.289 -      .syntaxhighlighter .gutter .line {
   3.290 -        border-right: 3px solid #6ce26c !important;
   3.291 -      }
   3.292 -      .syntaxhighlighter .gutter .line.highlighted {
   3.293 -        background-color: #6ce26c !important;
   3.294 -        color: white !important;
   3.295 -      }
   3.296 -      .syntaxhighlighter.printing .line .content {
   3.297 -        border: none !important;
   3.298 -      }
   3.299 -      .syntaxhighlighter.collapsed {
   3.300 -        overflow: visible !important;
   3.301 -      }
   3.302 -      .syntaxhighlighter.collapsed .toolbar {
   3.303 -        color: blue !important;
   3.304 -        background: none !important;
   3.305 -        border: 1px solid #6ce26c !important;
   3.306 -      }
   3.307 -      .syntaxhighlighter.collapsed .toolbar a {
   3.308 -        color: blue !important;
   3.309 -      }
   3.310 -      .syntaxhighlighter.collapsed .toolbar a:hover {
   3.311 -        color: red !important;
   3.312 -      }
   3.313 -      .syntaxhighlighter .toolbar {
   3.314 -        color: white !important;
   3.315 -        background: #6ce26c !important;
   3.316 -        border: none !important;
   3.317 -      }
   3.318 -      .syntaxhighlighter .toolbar a {
   3.319 -        color: white !important;
   3.320 -      }
   3.321 -      .syntaxhighlighter .toolbar a:hover {
   3.322 -        color: black !important;
   3.323 -      }
   3.324 -      .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
   3.325 -        color: black !important;
   3.326 -      }
   3.327 -      .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
   3.328 -        color: #008200 !important;
   3.329 -      }
   3.330 -      .syntaxhighlighter .string, .syntaxhighlighter .string a {
   3.331 -        color: blue !important;
   3.332 -      }
   3.333 -      .syntaxhighlighter .keyword {
   3.334 -        color: #006699 !important;
   3.335 -      }
   3.336 -      .syntaxhighlighter .preprocessor {
   3.337 -        color: gray !important;
   3.338 -      }
   3.339 -      .syntaxhighlighter .variable {
   3.340 -        color: #aa7700 !important;
   3.341 -      }
   3.342 -      .syntaxhighlighter .value {
   3.343 -        color: #009900 !important;
   3.344 -      }
   3.345 -      .syntaxhighlighter .functions {
   3.346 -        color: #ff1493 !important;
   3.347 -      }
   3.348 -      .syntaxhighlighter .constants {
   3.349 -        color: #0066cc !important;
   3.350 -      }
   3.351 -      .syntaxhighlighter .script {
   3.352 -        font-weight: bold !important;
   3.353 -        color: #006699 !important;
   3.354 -        background-color: none !important;
   3.355 -      }
   3.356 -      .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
   3.357 -        color: gray !important;
   3.358 -      }
   3.359 -      .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
   3.360 -        color: #ff1493 !important;
   3.361 -      }
   3.362 -      .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
   3.363 -        color: red !important;
   3.364 -      }
   3.365 -
   3.366 -      .syntaxhighlighter .keyword {
   3.367 -        font-weight: bold !important;
   3.368 -      }
   3.369 -    </style>
   3.370 -    <script src="tools/syntaxhighlighter/js/shCore.js" type="text/javascript" class='remove'></script>
   3.371 -    <script src="tools/syntaxhighlighter/js/shAutoloader.js" type="text/javascript" class='remove'></script>
   3.372 -    <script src="tools/syntaxhighlighter/js/shBrushXml.js" type="text/javascript" class='remove'></script>
   3.373 -    <script src="tools/syntaxhighlighter/js/shBrushJScript.js" type="text/javascript" class='remove'></script>
   3.374 -
   3.375 -    <script src='./js/profiles/w3c-common-loader.js' type="text/javascript" class='remove'></script>
   3.376 +    <script src='http://www.w3.org/Tools/respec/respec-w3c-common' type="text/javascript" class='remove' async></script>
   3.377      <style type="text/css">
   3.378        /* Custom CSS optimizations (Richard Tibbett) */
   3.379  
   3.380 @@ -420,7 +66,7 @@
   3.381    <body>
   3.382      <section id='abstract'>
   3.383        <p>
   3.384 -        This specification defines a mechanism for an HTML document to discover and subsequently communicate with <acronym title="Hypertext Transfer Protocol">HTTP</acronym>-based services
   3.385 +        This specification defines a mechanism for an HTML document to discover and subsequently communicate with <abbr title="Hypertext Transfer Protocol">HTTP</abbr>-based services
   3.386          advertised via common discovery protocols within a user's network.
   3.387        </p>
   3.388      </section>
   3.389 @@ -439,7 +85,7 @@
   3.390        <a href="#navigatornetworkservice"><code>NavigatorNetworkService</code></a> interface.</p>
   3.391  
   3.392        <p>
   3.393 -         Using this <acronym title="Application Programming Interface">API</acronym> consists of requesting a well-known service type, known by developers and advertised by Local-networked Devices. User authorization, where the user connects the web page to one or more discovered services,
   3.394 +         Using this <abbr title="Application Programming Interface">API</abbr> consists of requesting a well-known service type, known by developers and advertised by Local-networked Devices. User authorization, where the user connects the web page to one or more discovered services,
   3.395           is expected before the web page is able to interact with any Local-networked Services.
   3.396        </p>
   3.397  
   3.398 @@ -467,7 +113,7 @@
   3.399        <div class="example">
   3.400         <p>Example of requesting a DNS-SD advertised service:</p>
   3.401         <hr />
   3.402 -       <pre class="brush:js">function showServices( services ) {
   3.403 +       <pre class="highlight">function showServices( services ) {
   3.404    // Show a list of all the services provided to the web page
   3.405    for(var i = 0, l = services.length; i < l; i++) console.log( services[i].name );
   3.406  }
   3.407 @@ -478,7 +124,7 @@
   3.408        <div class="example">
   3.409          <p>Example of requesting a UPnP advertised service, also handling error conditions:</p>
   3.410          <hr />
   3.411 -        <pre class="brush:js">function showServices( services ) {
   3.412 +        <pre class="highlight">function showServices( services ) {
   3.413    // Show a list of all the services provided to the web page
   3.414    for(var i = 0, l = services.length; i < l; i++) console.log( services[i].name );
   3.415  }
   3.416 @@ -493,7 +139,7 @@
   3.417        <div class="example">
   3.418          <p>Example of requesting either a DNS-SD or UPnP advertised service:</p>
   3.419          <hr />
   3.420 -        <pre class="brush:js">function showServices( services ) {
   3.421 +        <pre class="highlight">function showServices( services ) {
   3.422    // Show a list of all the services provided to the web page (+ service type)
   3.423    for(var i = 0, l = services.length; i < l; i++)
   3.424       console.log( services[i].name + '(' + services[i].type + ')' );
   3.425 @@ -562,7 +208,7 @@
   3.426  
   3.427        <p>
   3.428           The term DOM is used to refer to the API set made available to scripts in Web applications, and does not necessarily imply the existence of an actual <code>Document</code> object or of any
   3.429 -         other <code>Node</code> objects as defined in the DOM Core specifications. [[!DOM-CORE]]
   3.430 +         other <code>Node</code> objects as defined in the DOM Core specifications. [[!DOM4]]
   3.431        </p>
   3.432  
   3.433        <p>
   3.434 @@ -760,7 +406,7 @@
   3.435  
   3.436                 <ol class="rule">
   3.437                    <li>
   3.438 -                     Add the <var>service</var>'s <code>url</code> parameter to the <a>entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a>.
   3.439 +                     Add the <var>service</var>'s <code>url</code> parameter to the <a>entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>.
   3.440                    </li>
   3.441                    <li>
   3.442                      If <var>service</var>'s <code>type</code> parameter begins with the DOMString &quot;<code>upnp:</code>&quot; and the <var>service</var>'s <code>eventsUrl</code> parameter is not empty then <a>setup a UPnP Events Subscription</a> for <var>service</var>.
   3.443 @@ -1260,7 +906,7 @@
   3.444              <h2>Service Discovery</h2>
   3.445  
   3.446        <p>
   3.447 -         A <a>user agent</a> conforming to this specification MAY implement <acronym title="Simple Service Discovery Protocol">SSDP</acronym> [[!UPNP]] and Zeroconf [[!DNS-SD]] + [[!MDNS]] service discovery mechanisms
   3.448 +         A <a>user agent</a> conforming to this specification MAY implement <acronym title="Simple Service Discovery Protocol">SSDP</acronym> [[!UPNP-DEVICEARCH11]] and Zeroconf [[!DNS-SD]] + [[!MDNS]] service discovery mechanisms
   3.449           to enable Web pages to request and connect with HTTP services running on networked devices, discovered via either mechanism, through this API. When a <a>user agent</a> implements either of these service discovery mechanisms, then it MUST conform to the corresponding algorithms provided in this section of the specification.
   3.450        </p>
   3.451        <p>
   3.452 @@ -1281,10 +927,10 @@
   3.453        </p>
   3.454  
   3.455              <section>
   3.456 -         <h4>Zeroconf (<acronym title="Multicast DNS">mDNS</acronym> + <acronym title="Domain Name System">DNS</acronym>-<acronym title="Service Discovery">SD</acronym>)</h4>
   3.457 +         <h4>Zeroconf (<abbr title="Multicast DNS">mDNS</abbr> + <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr>)</h4>
   3.458  
   3.459           <p>
   3.460 -            For each DNS response received from a user-agent-initiated Multicast DNS Browse for <acronym title="DNS Pointer Record">PTR</acronym> records with the name <code>_services._dns-sd._udp</code> on the resolved recommended automatic browsing
   3.461 +            For each DNS response received from a user-agent-initiated Multicast DNS Browse for <abbr title="DNS Pointer Record">PTR</abbr> records with the name <code>_services._dns-sd._udp</code> on the resolved recommended automatic browsing
   3.462     domain [[!MDNS]], the <a>user agent</a> MUST run the following steps:
   3.463           </p>
   3.464  
   3.465 @@ -1366,10 +1012,10 @@
   3.466        </section>
   3.467  
   3.468        <section>
   3.469 -         <h5>Universal Plug-and-Play (<acronym title="Universal Plug-and-Play">UPnP</acronym>)</h5>
   3.470 +         <h5>Universal Plug-and-Play (<abbr title="Universal Plug-and-Play">UPnP</abbr>)</h5>
   3.471  
   3.472           <p>
   3.473 -            For each SSDP Presence Announcement [[!UPNP]] - a HTTP NOTIFY request - received from a user-agent-initiated SSDP Discovery Request [[!UPNP]], the <a>user agent</a> MUST run the following steps:
   3.474 +            For each SSDP Presence Announcement [[!UPNP-DEVICEARCH11]] - a HTTP NOTIFY request - received from a user-agent-initiated SSDP Discovery Request [[!UPNP-DEVICEARCH11]], the <a>user agent</a> MUST run the following steps:
   3.475           </p>
   3.476  
   3.477           <ol class="rule">
   3.478 @@ -1388,7 +1034,7 @@
   3.479  
   3.480              <li>
   3.481                 Let <var>root device descriptor file</var> contain the contents of the file located at the URL provided in the first occurrence of <var>Location</var> obtained according to the rules
   3.482 -               defined in the section 'Retrieving a description using HTTP' [[!UPNP]].
   3.483 +               defined in the section 'Retrieving a description using HTTP' [[!UPNP-DEVICEARCH11]].
   3.484              </li>
   3.485  
   3.486              <li>
   3.487 @@ -1397,7 +1043,7 @@
   3.488  
   3.489              <li>
   3.490                 Let <var>advertised services</var> be a <a>list of all advertised services</a> obtained from the <var>root device descriptor file</var> containing all sub-nodes of the <code>serviceList</code> node as described in
   3.491 -               the section 'Device Description' [[!UPNP]].
   3.492 +               the section 'Device Description' [[!UPNP-DEVICEARCH11]].
   3.493              </li>
   3.494  
   3.495              <li>
   3.496 @@ -1714,7 +1360,7 @@
   3.497              <p>The button is re-enabled only when the connected network service disconnects for whatever reason (the service becomes unavailable on the network, the user disconnects from their current network or the user revokes access to the service from the current web page). At this point the user can re-click the button to select a new network service to connect to the web page and the above steps are repeated.</p>
   3.498              <p>The provided service type identifier and service interaction used in this example is based on the well-defined service type and messaging format supported by the <a href="http://xbmc.org/about/">XBMC Media Server</a>. </p>
   3.499              <hr />
   3.500 -            <pre class="brush:js">&lt;input type="button" value="Start" onclick="start()" id="startBtn"/&gt;
   3.501 +            <pre class="highlight">&lt;input type="button" value="Start" onclick="start()" id="startBtn"/&gt;
   3.502  &lt;div id="debugconsole">&lt;/div>
   3.503  
   3.504  &lt;script>
   3.505 @@ -1782,7 +1428,7 @@
   3.506               <br /><br />Once the user has authorized the device, the web page sends a simple mute command according to the messaging format supported by the device.
   3.507              </p>
   3.508              <hr />
   3.509 -            <pre class="brush:js">&lt;select name="make" id="make"&gt;
   3.510 +            <pre class="highlight">&lt;select name="make" id="make"&gt;
   3.511    &lt;option selected="selected" disabled="disabled"&gt;Select make&lt;/option&gt;
   3.512    &lt;option&gt;Sony&lt;/option&gt;
   3.513    &lt;option&gt;Philips&lt;/option&gt;
   3.514 @@ -1899,14 +1545,5 @@
   3.515        <br /></br />
   3.516        CableLabs, Opera Software ASA, W3C Device APIs Working Group, W3C Web and TV Interest Group, ...</p>
   3.517      </section>
   3.518 -
   3.519 -    <script class='remove'>
   3.520 -    if(SyntaxHighlighter) {
   3.521 -      SyntaxHighlighter.defaults['gutter'] = false;
   3.522 -      SyntaxHighlighter.defaults['toolbar'] = false;
   3.523 -      SyntaxHighlighter.all()
   3.524 -    }
   3.525 -    </script>
   3.526 -
   3.527  </body>
   3.528  </html>
     4.1 --- a/discovery-api/js/core/base-runner.js	Wed Aug 22 15:45:40 2012 +0200
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,7465 +0,0 @@
     4.4 -
     4.5 -// XXX
     4.6 -//  This is very rough, it needs more useful stuff
     4.7 -
     4.8 -if (!window.console) {
     4.9 -    var fallback = window.opera ? window.opera.postError : function (str) {};
    4.10 -    window.console = { log: fallback, warn: fallback, error: fallback };
    4.11 -}
    4.12 -
    4.13 -(function (GLOBAL) {
    4.14 -    GLOBAL.warn = function (str) {
    4.15 -        console.warn("W: " + str);
    4.16 -    };
    4.17 -
    4.18 -    GLOBAL.error = function (str) {
    4.19 -        console.error("E: " + str);
    4.20 -    };
    4.21 -
    4.22 -    GLOBAL.progress = function (str) {
    4.23 -        if (console) console.log("P: " + str);
    4.24 -    };
    4.25 -})(this);
    4.26 -
    4.27 -
    4.28 -define(
    4.29 -    [],
    4.30 -    function () {
    4.31 -        return {
    4.32 -            runAll:    function (plugs) {
    4.33 -                // the first in the plugs is going to be us
    4.34 -                plugs.shift();
    4.35 -                if (!respecConfig) respecConfig = {};
    4.36 -
    4.37 -                // the base URL is used by some modules
    4.38 -                var $scripts = $("script"),
    4.39 -                    baseUrl = "";
    4.40 -                $scripts.each(function (i, s) {
    4.41 -                    var src = s.getAttribute("src");
    4.42 -                    if (!src || !$(s).hasClass("remove")) return;
    4.43 -                    if (/\/js\//.test(src)) baseUrl = src.replace(/\/js\/.*/, "\/js\/")
    4.44 -                });
    4.45 -                respecConfig.respecBase = baseUrl;
    4.46 -
    4.47 -                var pipeline;
    4.48 -                pipeline = function () {
    4.49 -                    if (!plugs.length) return;
    4.50 -                    var plug = plugs.shift();
    4.51 -                    if (plug.run) plug.run.call(plug, respecConfig, document, pipeline);
    4.52 -                    else pipeline();
    4.53 -                };
    4.54 -                pipeline();
    4.55 -                if (respecConfig.afterEnd) respecConfig.afterEnd.apply(GLOBAL, Array.prototype.slice.call(arguments));
    4.56 -            },
    4.57 -            ieDummy: 1
    4.58 -        };
    4.59 -    }
    4.60 -);
    4.61 -
    4.62 -
    4.63 -/*!
    4.64 - * jQuery JavaScript Library v1.4.4
    4.65 - * http://jquery.com/
    4.66 - *
    4.67 - * Copyright 2010, John Resig
    4.68 - * Dual licensed under the MIT or GPL Version 2 licenses.
    4.69 - * http://jquery.org/license
    4.70 - *
    4.71 - * Includes Sizzle.js
    4.72 - * http://sizzlejs.com/
    4.73 - * Copyright 2010, The Dojo Foundation
    4.74 - * Released under the MIT, BSD, and GPL Licenses.
    4.75 - *
    4.76 - * Date: Thu Nov 11 19:04:53 2010 -0500
    4.77 - */
    4.78 -(function( window, undefined ) {
    4.79 -
    4.80 -// Use the correct document accordingly with window argument (sandbox)
    4.81 -var document = window.document;
    4.82 -var jQuery = (function() {
    4.83 -
    4.84 -// Define a local copy of jQuery
    4.85 -var jQuery = function( selector, context ) {
    4.86 -		// The jQuery object is actually just the init constructor 'enhanced'
    4.87 -		return new jQuery.fn.init( selector, context );
    4.88 -	},
    4.89 -
    4.90 -	// Map over jQuery in case of overwrite
    4.91 -	_jQuery = window.jQuery,
    4.92 -
    4.93 -	// Map over the $ in case of overwrite
    4.94 -	_$ = window.$,
    4.95 -
    4.96 -	// A central reference to the root jQuery(document)
    4.97 -	rootjQuery,
    4.98 -
    4.99 -	// A simple way to check for HTML strings or ID strings
   4.100 -	// (both of which we optimize for)
   4.101 -	quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,
   4.102 -
   4.103 -	// Is it a simple selector
   4.104 -	isSimple = /^.[^:#\[\.,]*$/,
   4.105 -
   4.106 -	// Check if a string has a non-whitespace character in it
   4.107 -	rnotwhite = /\S/,
   4.108 -	rwhite = /\s/,
   4.109 -
   4.110 -	// Used for trimming whitespace
   4.111 -	trimLeft = /^\s+/,
   4.112 -	trimRight = /\s+$/,
   4.113 -
   4.114 -	// Check for non-word characters
   4.115 -	rnonword = /\W/,
   4.116 -
   4.117 -	// Check for digits
   4.118 -	rdigit = /\d/,
   4.119 -
   4.120 -	// Match a standalone tag
   4.121 -	rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
   4.122 -
   4.123 -	// JSON RegExp
   4.124 -	rvalidchars = /^[\],:{}\s]*$/,
   4.125 -	rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
   4.126 -	rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
   4.127 -	rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
   4.128 -
   4.129 -	// Useragent RegExp
   4.130 -	rwebkit = /(webkit)[ \/]([\w.]+)/,
   4.131 -	ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
   4.132 -	rmsie = /(msie) ([\w.]+)/,
   4.133 -	rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
   4.134 -
   4.135 -	// Keep a UserAgent string for use with jQuery.browser
   4.136 -	userAgent = navigator.userAgent,
   4.137 -
   4.138 -	// For matching the engine and version of the browser
   4.139 -	browserMatch,
   4.140 -	
   4.141 -	// Has the ready events already been bound?
   4.142 -	readyBound = false,
   4.143 -	
   4.144 -	// The functions to execute on DOM ready
   4.145 -	readyList = [],
   4.146 -
   4.147 -	// The ready event handler
   4.148 -	DOMContentLoaded,
   4.149 -
   4.150 -	// Save a reference to some core methods
   4.151 -	toString = Object.prototype.toString,
   4.152 -	hasOwn = Object.prototype.hasOwnProperty,
   4.153 -	push = Array.prototype.push,
   4.154 -	slice = Array.prototype.slice,
   4.155 -	trim = String.prototype.trim,
   4.156 -	indexOf = Array.prototype.indexOf,
   4.157 -	
   4.158 -	// [[Class]] -> type pairs
   4.159 -	class2type = {};
   4.160 -
   4.161 -jQuery.fn = jQuery.prototype = {
   4.162 -	init: function( selector, context ) {
   4.163 -		var match, elem, ret, doc;
   4.164 -
   4.165 -		// Handle $(""), $(null), or $(undefined)
   4.166 -		if ( !selector ) {
   4.167 -			return this;
   4.168 -		}
   4.169 -
   4.170 -		// Handle $(DOMElement)
   4.171 -		if ( selector.nodeType ) {
   4.172 -			this.context = this[0] = selector;
   4.173 -			this.length = 1;
   4.174 -			return this;
   4.175 -		}
   4.176 -		
   4.177 -		// The body element only exists once, optimize finding it
   4.178 -		if ( selector === "body" && !context && document.body ) {
   4.179 -			this.context = document;
   4.180 -			this[0] = document.body;
   4.181 -			this.selector = "body";
   4.182 -			this.length = 1;
   4.183 -			return this;
   4.184 -		}
   4.185 -
   4.186 -		// Handle HTML strings
   4.187 -		if ( typeof selector === "string" ) {
   4.188 -			// Are we dealing with HTML string or an ID?
   4.189 -			match = quickExpr.exec( selector );
   4.190 -
   4.191 -			// Verify a match, and that no context was specified for #id
   4.192 -			if ( match && (match[1] || !context) ) {
   4.193 -
   4.194 -				// HANDLE: $(html) -> $(array)
   4.195 -				if ( match[1] ) {
   4.196 -					doc = (context ? context.ownerDocument || context : document);
   4.197 -
   4.198 -					// If a single string is passed in and it's a single tag
   4.199 -					// just do a createElement and skip the rest
   4.200 -					ret = rsingleTag.exec( selector );
   4.201 -
   4.202 -					if ( ret ) {
   4.203 -						if ( jQuery.isPlainObject( context ) ) {
   4.204 -							selector = [ document.createElement( ret[1] ) ];
   4.205 -							jQuery.fn.attr.call( selector, context, true );
   4.206 -
   4.207 -						} else {
   4.208 -							selector = [ doc.createElement( ret[1] ) ];
   4.209 -						}
   4.210 -
   4.211 -					} else {
   4.212 -						ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
   4.213 -						selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes;
   4.214 -					}
   4.215 -					
   4.216 -					return jQuery.merge( this, selector );
   4.217 -					
   4.218 -				// HANDLE: $("#id")
   4.219 -				} else {
   4.220 -					elem = document.getElementById( match[2] );
   4.221 -
   4.222 -					// Check parentNode to catch when Blackberry 4.6 returns
   4.223 -					// nodes that are no longer in the document #6963
   4.224 -					if ( elem && elem.parentNode ) {
   4.225 -						// Handle the case where IE and Opera return items
   4.226 -						// by name instead of ID
   4.227 -						if ( elem.id !== match[2] ) {
   4.228 -							return rootjQuery.find( selector );
   4.229 -						}
   4.230 -
   4.231 -						// Otherwise, we inject the element directly into the jQuery object
   4.232 -						this.length = 1;
   4.233 -						this[0] = elem;
   4.234 -					}
   4.235 -
   4.236 -					this.context = document;
   4.237 -					this.selector = selector;
   4.238 -					return this;
   4.239 -				}
   4.240 -
   4.241 -			// HANDLE: $("TAG")
   4.242 -			} else if ( !context && !rnonword.test( selector ) ) {
   4.243 -				this.selector = selector;
   4.244 -				this.context = document;
   4.245 -				selector = document.getElementsByTagName( selector );
   4.246 -				return jQuery.merge( this, selector );
   4.247 -
   4.248 -			// HANDLE: $(expr, $(...))
   4.249 -			} else if ( !context || context.jquery ) {
   4.250 -				return (context || rootjQuery).find( selector );
   4.251 -
   4.252 -			// HANDLE: $(expr, context)
   4.253 -			// (which is just equivalent to: $(context).find(expr)
   4.254 -			} else {
   4.255 -				return jQuery( context ).find( selector );
   4.256 -			}
   4.257 -
   4.258 -		// HANDLE: $(function)
   4.259 -		// Shortcut for document ready
   4.260 -		} else if ( jQuery.isFunction( selector ) ) {
   4.261 -			return rootjQuery.ready( selector );
   4.262 -		}
   4.263 -
   4.264 -		if (selector.selector !== undefined) {
   4.265 -			this.selector = selector.selector;
   4.266 -			this.context = selector.context;
   4.267 -		}
   4.268 -
   4.269 -		return jQuery.makeArray( selector, this );
   4.270 -	},
   4.271 -
   4.272 -	// Start with an empty selector
   4.273 -	selector: "",
   4.274 -
   4.275 -	// The current version of jQuery being used
   4.276 -	jquery: "1.4.4",
   4.277 -
   4.278 -	// The default length of a jQuery object is 0
   4.279 -	length: 0,
   4.280 -
   4.281 -	// The number of elements contained in the matched element set
   4.282 -	size: function() {
   4.283 -		return this.length;
   4.284 -	},
   4.285 -
   4.286 -	toArray: function() {
   4.287 -		return slice.call( this, 0 );
   4.288 -	},
   4.289 -
   4.290 -	// Get the Nth element in the matched element set OR
   4.291 -	// Get the whole matched element set as a clean array
   4.292 -	get: function( num ) {
   4.293 -		return num == null ?
   4.294 -
   4.295 -			// Return a 'clean' array
   4.296 -			this.toArray() :
   4.297 -
   4.298 -			// Return just the object
   4.299 -			( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
   4.300 -	},
   4.301 -
   4.302 -	// Take an array of elements and push it onto the stack
   4.303 -	// (returning the new matched element set)
   4.304 -	pushStack: function( elems, name, selector ) {
   4.305 -		// Build a new jQuery matched element set
   4.306 -		var ret = jQuery();
   4.307 -
   4.308 -		if ( jQuery.isArray( elems ) ) {
   4.309 -			push.apply( ret, elems );
   4.310 -		
   4.311 -		} else {
   4.312 -			jQuery.merge( ret, elems );
   4.313 -		}
   4.314 -
   4.315 -		// Add the old object onto the stack (as a reference)
   4.316 -		ret.prevObject = this;
   4.317 -
   4.318 -		ret.context = this.context;
   4.319 -
   4.320 -		if ( name === "find" ) {
   4.321 -			ret.selector = this.selector + (this.selector ? " " : "") + selector;
   4.322 -		} else if ( name ) {
   4.323 -			ret.selector = this.selector + "." + name + "(" + selector + ")";
   4.324 -		}
   4.325 -
   4.326 -		// Return the newly-formed element set
   4.327 -		return ret;
   4.328 -	},
   4.329 -
   4.330 -	// Execute a callback for every element in the matched set.
   4.331 -	// (You can seed the arguments with an array of args, but this is
   4.332 -	// only used internally.)
   4.333 -	each: function( callback, args ) {
   4.334 -		return jQuery.each( this, callback, args );
   4.335 -	},
   4.336 -	
   4.337 -	ready: function( fn ) {
   4.338 -		// Attach the listeners
   4.339 -		jQuery.bindReady();
   4.340 -
   4.341 -		// If the DOM is already ready
   4.342 -		if ( jQuery.isReady ) {
   4.343 -			// Execute the function immediately
   4.344 -			fn.call( document, jQuery );
   4.345 -
   4.346 -		// Otherwise, remember the function for later
   4.347 -		} else if ( readyList ) {
   4.348 -			// Add the function to the wait list
   4.349 -			readyList.push( fn );
   4.350 -		}
   4.351 -
   4.352 -		return this;
   4.353 -	},
   4.354 -	
   4.355 -	eq: function( i ) {
   4.356 -		return i === -1 ?
   4.357 -			this.slice( i ) :
   4.358 -			this.slice( i, +i + 1 );
   4.359 -	},
   4.360 -
   4.361 -	first: function() {
   4.362 -		return this.eq( 0 );
   4.363 -	},
   4.364 -
   4.365 -	last: function() {
   4.366 -		return this.eq( -1 );
   4.367 -	},
   4.368 -
   4.369 -	slice: function() {
   4.370 -		return this.pushStack( slice.apply( this, arguments ),
   4.371 -			"slice", slice.call(arguments).join(",") );
   4.372 -	},
   4.373 -
   4.374 -	map: function( callback ) {
   4.375 -		return this.pushStack( jQuery.map(this, function( elem, i ) {
   4.376 -			return callback.call( elem, i, elem );
   4.377 -		}));
   4.378 -	},
   4.379 -	
   4.380 -	end: function() {
   4.381 -		return this.prevObject || jQuery(null);
   4.382 -	},
   4.383 -
   4.384 -	// For internal use only.
   4.385 -	// Behaves like an Array's method, not like a jQuery method.
   4.386 -	push: push,
   4.387 -	sort: [].sort,
   4.388 -	splice: [].splice
   4.389 -};
   4.390 -
   4.391 -// Give the init function the jQuery prototype for later instantiation
   4.392 -jQuery.fn.init.prototype = jQuery.fn;
   4.393 -
   4.394 -jQuery.extend = jQuery.fn.extend = function() {
   4.395 -	 var options, name, src, copy, copyIsArray, clone,
   4.396 -		target = arguments[0] || {},
   4.397 -		i = 1,
   4.398 -		length = arguments.length,
   4.399 -		deep = false;
   4.400 -
   4.401 -	// Handle a deep copy situation
   4.402 -	if ( typeof target === "boolean" ) {
   4.403 -		deep = target;
   4.404 -		target = arguments[1] || {};
   4.405 -		// skip the boolean and the target
   4.406 -		i = 2;
   4.407 -	}
   4.408 -
   4.409 -	// Handle case when target is a string or something (possible in deep copy)
   4.410 -	if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
   4.411 -		target = {};
   4.412 -	}
   4.413 -
   4.414 -	// extend jQuery itself if only one argument is passed
   4.415 -	if ( length === i ) {
   4.416 -		target = this;
   4.417 -		--i;
   4.418 -	}
   4.419 -
   4.420 -	for ( ; i < length; i++ ) {
   4.421 -		// Only deal with non-null/undefined values
   4.422 -		if ( (options = arguments[ i ]) != null ) {
   4.423 -			// Extend the base object
   4.424 -			for ( name in options ) {
   4.425 -				src = target[ name ];
   4.426 -				copy = options[ name ];
   4.427 -
   4.428 -				// Prevent never-ending loop
   4.429 -				if ( target === copy ) {
   4.430 -					continue;
   4.431 -				}
   4.432 -
   4.433 -				// Recurse if we're merging plain objects or arrays
   4.434 -				if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
   4.435 -					if ( copyIsArray ) {
   4.436 -						copyIsArray = false;
   4.437 -						clone = src && jQuery.isArray(src) ? src : [];
   4.438 -
   4.439 -					} else {
   4.440 -						clone = src && jQuery.isPlainObject(src) ? src : {};
   4.441 -					}
   4.442 -
   4.443 -					// Never move original objects, clone them
   4.444 -					target[ name ] = jQuery.extend( deep, clone, copy );
   4.445 -
   4.446 -				// Don't bring in undefined values
   4.447 -				} else if ( copy !== undefined ) {
   4.448 -					target[ name ] = copy;
   4.449 -				}
   4.450 -			}
   4.451 -		}
   4.452 -	}
   4.453 -
   4.454 -	// Return the modified object
   4.455 -	return target;
   4.456 -};
   4.457 -
   4.458 -jQuery.extend({
   4.459 -	noConflict: function( deep ) {
   4.460 -		window.$ = _$;
   4.461 -
   4.462 -		if ( deep ) {
   4.463 -			window.jQuery = _jQuery;
   4.464 -		}
   4.465 -
   4.466 -		return jQuery;
   4.467 -	},
   4.468 -	
   4.469 -	// Is the DOM ready to be used? Set to true once it occurs.
   4.470 -	isReady: false,
   4.471 -
   4.472 -	// A counter to track how many items to wait for before
   4.473 -	// the ready event fires. See #6781
   4.474 -	readyWait: 1,
   4.475 -	
   4.476 -	// Handle when the DOM is ready
   4.477 -	ready: function( wait ) {
   4.478 -		// A third-party is pushing the ready event forwards
   4.479 -		if ( wait === true ) {
   4.480 -			jQuery.readyWait--;
   4.481 -		}
   4.482 -
   4.483 -		// Make sure that the DOM is not already loaded
   4.484 -		if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) {
   4.485 -			// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
   4.486 -			if ( !document.body ) {
   4.487 -				return setTimeout( jQuery.ready, 1 );
   4.488 -			}
   4.489 -
   4.490 -			// Remember that the DOM is ready
   4.491 -			jQuery.isReady = true;
   4.492 -
   4.493 -			// If a normal DOM Ready event fired, decrement, and wait if need be
   4.494 -			if ( wait !== true && --jQuery.readyWait > 0 ) {
   4.495 -				return;
   4.496 -			}
   4.497 -
   4.498 -			// If there are functions bound, to execute
   4.499 -			if ( readyList ) {
   4.500 -				// Execute all of them
   4.501 -				var fn,
   4.502 -					i = 0,
   4.503 -					ready = readyList;
   4.504 -
   4.505 -				// Reset the list of functions
   4.506 -				readyList = null;
   4.507 -
   4.508 -				while ( (fn = ready[ i++ ]) ) {
   4.509 -					fn.call( document, jQuery );
   4.510 -				}
   4.511 -
   4.512 -				// Trigger any bound ready events
   4.513 -				if ( jQuery.fn.trigger ) {
   4.514 -					jQuery( document ).trigger( "ready" ).unbind( "ready" );
   4.515 -				}
   4.516 -			}
   4.517 -		}
   4.518 -	},
   4.519 -	
   4.520 -	bindReady: function() {
   4.521 -		if ( readyBound ) {
   4.522 -			return;
   4.523 -		}
   4.524 -
   4.525 -		readyBound = true;
   4.526 -
   4.527 -		// Catch cases where $(document).ready() is called after the
   4.528 -		// browser event has already occurred.
   4.529 -		if ( document.readyState === "complete" ) {
   4.530 -			// Handle it asynchronously to allow scripts the opportunity to delay ready
   4.531 -			return setTimeout( jQuery.ready, 1 );
   4.532 -		}
   4.533 -
   4.534 -		// Mozilla, Opera and webkit nightlies currently support this event
   4.535 -		if ( document.addEventListener ) {
   4.536 -			// Use the handy event callback
   4.537 -			document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
   4.538 -			
   4.539 -			// A fallback to window.onload, that will always work
   4.540 -			window.addEventListener( "load", jQuery.ready, false );
   4.541 -
   4.542 -		// If IE event model is used
   4.543 -		} else if ( document.attachEvent ) {
   4.544 -			// ensure firing before onload,
   4.545 -			// maybe late but safe also for iframes
   4.546 -			document.attachEvent("onreadystatechange", DOMContentLoaded);
   4.547 -			
   4.548 -			// A fallback to window.onload, that will always work
   4.549 -			window.attachEvent( "onload", jQuery.ready );
   4.550 -
   4.551 -			// If IE and not a frame
   4.552 -			// continually check to see if the document is ready
   4.553 -			var toplevel = false;
   4.554 -
   4.555 -			try {
   4.556 -				toplevel = window.frameElement == null;
   4.557 -			} catch(e) {}
   4.558 -
   4.559 -			if ( document.documentElement.doScroll && toplevel ) {
   4.560 -				doScrollCheck();
   4.561 -			}
   4.562 -		}
   4.563 -	},
   4.564 -
   4.565 -	// See test/unit/core.js for details concerning isFunction.
   4.566 -	// Since version 1.3, DOM methods and functions like alert
   4.567 -	// aren't supported. They return false on IE (#2968).
   4.568 -	isFunction: function( obj ) {
   4.569 -		return jQuery.type(obj) === "function";
   4.570 -	},
   4.571 -
   4.572 -	isArray: Array.isArray || function( obj ) {
   4.573 -		return jQuery.type(obj) === "array";
   4.574 -	},
   4.575 -
   4.576 -	// A crude way of determining if an object is a window
   4.577 -	isWindow: function( obj ) {
   4.578 -		return obj && typeof obj === "object" && "setInterval" in obj;
   4.579 -	},
   4.580 -
   4.581 -	isNaN: function( obj ) {
   4.582 -		return obj == null || !rdigit.test( obj ) || isNaN( obj );
   4.583 -	},
   4.584 -
   4.585 -	type: function( obj ) {
   4.586 -		return obj == null ?
   4.587 -			String( obj ) :
   4.588 -			class2type[ toString.call(obj) ] || "object";
   4.589 -	},
   4.590 -
   4.591 -	isPlainObject: function( obj ) {
   4.592 -		// Must be an Object.
   4.593 -		// Because of IE, we also have to check the presence of the constructor property.
   4.594 -		// Make sure that DOM nodes and window objects don't pass through, as well
   4.595 -		if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
   4.596 -			return false;
   4.597 -		}
   4.598 -		
   4.599 -		// Not own constructor property must be Object
   4.600 -		if ( obj.constructor &&
   4.601 -			!hasOwn.call(obj, "constructor") &&
   4.602 -			!hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
   4.603 -			return false;
   4.604 -		}
   4.605 -		
   4.606 -		// Own properties are enumerated firstly, so to speed up,
   4.607 -		// if last one is own, then all properties are own.
   4.608 -	
   4.609 -		var key;
   4.610 -		for ( key in obj ) {}
   4.611 -		
   4.612 -		return key === undefined || hasOwn.call( obj, key );
   4.613 -	},
   4.614 -
   4.615 -	isEmptyObject: function( obj ) {
   4.616 -		for ( var name in obj ) {
   4.617 -			return false;
   4.618 -		}
   4.619 -		return true;
   4.620 -	},
   4.621 -	
   4.622 -	error: function( msg ) {
   4.623 -		throw msg;
   4.624 -	},
   4.625 -	
   4.626 -	parseJSON: function( data ) {
   4.627 -		if ( typeof data !== "string" || !data ) {
   4.628 -			return null;
   4.629 -		}
   4.630 -
   4.631 -		// Make sure leading/trailing whitespace is removed (IE can't handle it)
   4.632 -		data = jQuery.trim( data );
   4.633 -		
   4.634 -		// Make sure the incoming data is actual JSON
   4.635 -		// Logic borrowed from http://json.org/json2.js
   4.636 -		if ( rvalidchars.test(data.replace(rvalidescape, "@")
   4.637 -			.replace(rvalidtokens, "]")
   4.638 -			.replace(rvalidbraces, "")) ) {
   4.639 -
   4.640 -			// Try to use the native JSON parser first
   4.641 -			return window.JSON && window.JSON.parse ?
   4.642 -				window.JSON.parse( data ) :
   4.643 -				(new Function("return " + data))();
   4.644 -
   4.645 -		} else {
   4.646 -			jQuery.error( "Invalid JSON: " + data );
   4.647 -		}
   4.648 -	},
   4.649 -
   4.650 -	noop: function() {},
   4.651 -
   4.652 -	// Evalulates a script in a global context
   4.653 -	globalEval: function( data ) {
   4.654 -		if ( data && rnotwhite.test(data) ) {
   4.655 -			// Inspired by code by Andrea Giammarchi
   4.656 -			// http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
   4.657 -			var head = document.getElementsByTagName("head")[0] || document.documentElement,
   4.658 -				script = document.createElement("script");
   4.659 -
   4.660 -			script.type = "text/javascript";
   4.661 -
   4.662 -			if ( jQuery.support.scriptEval ) {
   4.663 -				script.appendChild( document.createTextNode( data ) );
   4.664 -			} else {
   4.665 -				script.text = data;
   4.666 -			}
   4.667 -
   4.668 -			// Use insertBefore instead of appendChild to circumvent an IE6 bug.
   4.669 -			// This arises when a base node is used (#2709).
   4.670 -			head.insertBefore( script, head.firstChild );
   4.671 -			head.removeChild( script );
   4.672 -		}
   4.673 -	},
   4.674 -
   4.675 -	nodeName: function( elem, name ) {
   4.676 -		return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
   4.677 -	},
   4.678 -
   4.679 -	// args is for internal usage only
   4.680 -	each: function( object, callback, args ) {
   4.681 -		var name, i = 0,
   4.682 -			length = object.length,
   4.683 -			isObj = length === undefined || jQuery.isFunction(object);
   4.684 -
   4.685 -		if ( args ) {
   4.686 -			if ( isObj ) {
   4.687 -				for ( name in object ) {
   4.688 -					if ( callback.apply( object[ name ], args ) === false ) {
   4.689 -						break;
   4.690 -					}
   4.691 -				}
   4.692 -			} else {
   4.693 -				for ( ; i < length; ) {
   4.694 -					if ( callback.apply( object[ i++ ], args ) === false ) {
   4.695 -						break;
   4.696 -					}
   4.697 -				}
   4.698 -			}
   4.699 -
   4.700 -		// A special, fast, case for the most common use of each
   4.701 -		} else {
   4.702 -			if ( isObj ) {
   4.703 -				for ( name in object ) {
   4.704 -					if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
   4.705 -						break;
   4.706 -					}
   4.707 -				}
   4.708 -			} else {
   4.709 -				for ( var value = object[0];
   4.710 -					i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
   4.711 -			}
   4.712 -		}
   4.713 -
   4.714 -		return object;
   4.715 -	},
   4.716 -
   4.717 -	// Use native String.trim function wherever possible
   4.718 -	trim: trim ?
   4.719 -		function( text ) {
   4.720 -			return text == null ?
   4.721 -				"" :
   4.722 -				trim.call( text );
   4.723 -		} :
   4.724 -
   4.725 -		// Otherwise use our own trimming functionality
   4.726 -		function( text ) {
   4.727 -			return text == null ?
   4.728 -				"" :
   4.729 -				text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
   4.730 -		},
   4.731 -
   4.732 -	// results is for internal usage only
   4.733 -	makeArray: function( array, results ) {
   4.734 -		var ret = results || [];
   4.735 -
   4.736 -		if ( array != null ) {
   4.737 -			// The window, strings (and functions) also have 'length'
   4.738 -			// The extra typeof function check is to prevent crashes
   4.739 -			// in Safari 2 (See: #3039)
   4.740 -			// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
   4.741 -			var type = jQuery.type(array);
   4.742 -
   4.743 -			if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
   4.744 -				push.call( ret, array );
   4.745 -			} else {
   4.746 -				jQuery.merge( ret, array );
   4.747 -			}
   4.748 -		}
   4.749 -
   4.750 -		return ret;
   4.751 -	},
   4.752 -
   4.753 -	inArray: function( elem, array ) {
   4.754 -		if ( array.indexOf ) {
   4.755 -			return array.indexOf( elem );
   4.756 -		}
   4.757 -
   4.758 -		for ( var i = 0, length = array.length; i < length; i++ ) {
   4.759 -			if ( array[ i ] === elem ) {
   4.760 -				return i;
   4.761 -			}
   4.762 -		}
   4.763 -
   4.764 -		return -1;
   4.765 -	},
   4.766 -
   4.767 -	merge: function( first, second ) {
   4.768 -		var i = first.length,
   4.769 -			j = 0;
   4.770 -
   4.771 -		if ( typeof second.length === "number" ) {
   4.772 -			for ( var l = second.length; j < l; j++ ) {
   4.773 -				first[ i++ ] = second[ j ];
   4.774 -			}
   4.775 -		
   4.776 -		} else {
   4.777 -			while ( second[j] !== undefined ) {
   4.778 -				first[ i++ ] = second[ j++ ];
   4.779 -			}
   4.780 -		}
   4.781 -
   4.782 -		first.length = i;
   4.783 -
   4.784 -		return first;
   4.785 -	},
   4.786 -
   4.787 -	grep: function( elems, callback, inv ) {
   4.788 -		var ret = [], retVal;
   4.789 -		inv = !!inv;
   4.790 -
   4.791 -		// Go through the array, only saving the items
   4.792 -		// that pass the validator function
   4.793 -		for ( var i = 0, length = elems.length; i < length; i++ ) {
   4.794 -			retVal = !!callback( elems[ i ], i );
   4.795 -			if ( inv !== retVal ) {
   4.796 -				ret.push( elems[ i ] );
   4.797 -			}
   4.798 -		}
   4.799 -
   4.800 -		return ret;
   4.801 -	},
   4.802 -
   4.803 -	// arg is for internal usage only
   4.804 -	map: function( elems, callback, arg ) {
   4.805 -		var ret = [], value;
   4.806 -
   4.807 -		// Go through the array, translating each of the items to their
   4.808 -		// new value (or values).
   4.809 -		for ( var i = 0, length = elems.length; i < length; i++ ) {
   4.810 -			value = callback( elems[ i ], i, arg );
   4.811 -
   4.812 -			if ( value != null ) {
   4.813 -				ret[ ret.length ] = value;
   4.814 -			}
   4.815 -		}
   4.816 -
   4.817 -		return ret.concat.apply( [], ret );
   4.818 -	},
   4.819 -
   4.820 -	// A global GUID counter for objects
   4.821 -	guid: 1,
   4.822 -
   4.823 -	proxy: function( fn, proxy, thisObject ) {
   4.824 -		if ( arguments.length === 2 ) {
   4.825 -			if ( typeof proxy === "string" ) {
   4.826 -				thisObject = fn;
   4.827 -				fn = thisObject[ proxy ];
   4.828 -				proxy = undefined;
   4.829 -
   4.830 -			} else if ( proxy && !jQuery.isFunction( proxy ) ) {
   4.831 -				thisObject = proxy;
   4.832 -				proxy = undefined;
   4.833 -			}
   4.834 -		}
   4.835 -
   4.836 -		if ( !proxy && fn ) {
   4.837 -			proxy = function() {
   4.838 -				return fn.apply( thisObject || this, arguments );
   4.839 -			};
   4.840 -		}
   4.841 -
   4.842 -		// Set the guid of unique handler to the same of original handler, so it can be removed
   4.843 -		if ( fn ) {
   4.844 -			proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
   4.845 -		}
   4.846 -
   4.847 -		// So proxy can be declared as an argument
   4.848 -		return proxy;
   4.849 -	},
   4.850 -
   4.851 -	// Mutifunctional method to get and set values to a collection
   4.852 -	// The value/s can be optionally by executed if its a function
   4.853 -	access: function( elems, key, value, exec, fn, pass ) {
   4.854 -		var length = elems.length;
   4.855 -	
   4.856 -		// Setting many attributes
   4.857 -		if ( typeof key === "object" ) {
   4.858 -			for ( var k in key ) {
   4.859 -				jQuery.access( elems, k, key[k], exec, fn, value );
   4.860 -			}
   4.861 -			return elems;
   4.862 -		}
   4.863 -	
   4.864 -		// Setting one attribute
   4.865 -		if ( value !== undefined ) {
   4.866 -			// Optionally, function values get executed if exec is true
   4.867 -			exec = !pass && exec && jQuery.isFunction(value);
   4.868 -		
   4.869 -			for ( var i = 0; i < length; i++ ) {
   4.870 -				fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
   4.871 -			}
   4.872 -		
   4.873 -			return elems;
   4.874 -		}
   4.875 -	
   4.876 -		// Getting an attribute
   4.877 -		return length ? fn( elems[0], key ) : undefined;
   4.878 -	},
   4.879 -
   4.880 -	now: function() {
   4.881 -		return (new Date()).getTime();
   4.882 -	},
   4.883 -
   4.884 -	// Use of jQuery.browser is frowned upon.
   4.885 -	// More details: http://docs.jquery.com/Utilities/jQuery.browser
   4.886 -	uaMatch: function( ua ) {
   4.887 -		ua = ua.toLowerCase();
   4.888 -
   4.889 -		var match = rwebkit.exec( ua ) ||
   4.890 -			ropera.exec( ua ) ||
   4.891 -			rmsie.exec( ua ) ||
   4.892 -			ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
   4.893 -			[];
   4.894 -
   4.895 -		return { browser: match[1] || "", version: match[2] || "0" };
   4.896 -	},
   4.897 -
   4.898 -	browser: {}
   4.899 -});
   4.900 -
   4.901 -// Populate the class2type map
   4.902 -jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
   4.903 -	class2type[ "[object " + name + "]" ] = name.toLowerCase();
   4.904 -});
   4.905 -
   4.906 -browserMatch = jQuery.uaMatch( userAgent );
   4.907 -if ( browserMatch.browser ) {
   4.908 -	jQuery.browser[ browserMatch.browser ] = true;
   4.909 -	jQuery.browser.version = browserMatch.version;
   4.910 -}
   4.911 -
   4.912 -// Deprecated, use jQuery.browser.webkit instead
   4.913 -if ( jQuery.browser.webkit ) {
   4.914 -	jQuery.browser.safari = true;
   4.915 -}
   4.916 -
   4.917 -if ( indexOf ) {
   4.918 -	jQuery.inArray = function( elem, array ) {
   4.919 -		return indexOf.call( array, elem );
   4.920 -	};
   4.921 -}
   4.922 -
   4.923 -// Verify that \s matches non-breaking spaces
   4.924 -// (IE fails on this test)
   4.925 -if ( !rwhite.test( "\xA0" ) ) {
   4.926 -	trimLeft = /^[\s\xA0]+/;
   4.927 -	trimRight = /[\s\xA0]+$/;
   4.928 -}
   4.929 -
   4.930 -// All jQuery objects should point back to these
   4.931 -rootjQuery = jQuery(document);
   4.932 -
   4.933 -// Cleanup functions for the document ready method
   4.934 -if ( document.addEventListener ) {
   4.935 -	DOMContentLoaded = function() {
   4.936 -		document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
   4.937 -		jQuery.ready();
   4.938 -	};
   4.939 -
   4.940 -} else if ( document.attachEvent ) {
   4.941 -	DOMContentLoaded = function() {
   4.942 -		// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
   4.943 -		if ( document.readyState === "complete" ) {
   4.944 -			document.detachEvent( "onreadystatechange", DOMContentLoaded );
   4.945 -			jQuery.ready();
   4.946 -		}
   4.947 -	};
   4.948 -}
   4.949 -
   4.950 -// The DOM ready check for Internet Explorer
   4.951 -function doScrollCheck() {
   4.952 -	if ( jQuery.isReady ) {
   4.953 -		return;
   4.954 -	}
   4.955 -
   4.956 -	try {
   4.957 -		// If IE is used, use the trick by Diego Perini
   4.958 -		// http://javascript.nwbox.com/IEContentLoaded/
   4.959 -		document.documentElement.doScroll("left");
   4.960 -	} catch(e) {
   4.961 -		setTimeout( doScrollCheck, 1 );
   4.962 -		return;
   4.963 -	}
   4.964 -
   4.965 -	// and execute any waiting functions
   4.966 -	jQuery.ready();
   4.967 -}
   4.968 -
   4.969 -// Expose jQuery to the global object
   4.970 -return (window.jQuery = window.$ = jQuery);
   4.971 -
   4.972 -})();
   4.973 -
   4.974 -
   4.975 -(function() {
   4.976 -
   4.977 -	jQuery.support = {};
   4.978 -
   4.979 -	var root = document.documentElement,
   4.980 -		script = document.createElement("script"),
   4.981 -		div = document.createElement("div"),
   4.982 -		id = "script" + jQuery.now();
   4.983 -
   4.984 -	div.style.display = "none";
   4.985 -	div.innerHTML = "   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
   4.986 -
   4.987 -	var all = div.getElementsByTagName("*"),
   4.988 -		a = div.getElementsByTagName("a")[0],
   4.989 -		select = document.createElement("select"),
   4.990 -		opt = select.appendChild( document.createElement("option") );
   4.991 -
   4.992 -	// Can't get basic test support
   4.993 -	if ( !all || !all.length || !a ) {
   4.994 -		return;
   4.995 -	}
   4.996 -
   4.997 -	jQuery.support = {
   4.998 -		// IE strips leading whitespace when .innerHTML is used
   4.999 -		leadingWhitespace: div.firstChild.nodeType === 3,
  4.1000 -
  4.1001 -		// Make sure that tbody elements aren't automatically inserted
  4.1002 -		// IE will insert them into empty tables
  4.1003 -		tbody: !div.getElementsByTagName("tbody").length,
  4.1004 -
  4.1005 -		// Make sure that link elements get serialized correctly by innerHTML
  4.1006 -		// This requires a wrapper element in IE
  4.1007 -		htmlSerialize: !!div.getElementsByTagName("link").length,
  4.1008 -
  4.1009 -		// Get the style information from getAttribute
  4.1010 -		// (IE uses .cssText insted)
  4.1011 -		style: /red/.test( a.getAttribute("style") ),
  4.1012 -
  4.1013 -		// Make sure that URLs aren't manipulated
  4.1014 -		// (IE normalizes it by default)
  4.1015 -		hrefNormalized: a.getAttribute("href") === "/a",
  4.1016 -
  4.1017 -		// Make sure that element opacity exists
  4.1018 -		// (IE uses filter instead)
  4.1019 -		// Use a regex to work around a WebKit issue. See #5145
  4.1020 -		opacity: /^0.55$/.test( a.style.opacity ),
  4.1021 -
  4.1022 -		// Verify style float existence
  4.1023 -		// (IE uses styleFloat instead of cssFloat)
  4.1024 -		cssFloat: !!a.style.cssFloat,
  4.1025 -
  4.1026 -		// Make sure that if no value is specified for a checkbox
  4.1027 -		// that it defaults to "on".
  4.1028 -		// (WebKit defaults to "" instead)
  4.1029 -		checkOn: div.getElementsByTagName("input")[0].value === "on",
  4.1030 -
  4.1031 -		// Make sure that a selected-by-default option has a working selected property.
  4.1032 -		// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
  4.1033 -		optSelected: opt.selected,
  4.1034 -
  4.1035 -		// Will be defined later
  4.1036 -		deleteExpando: true,
  4.1037 -		optDisabled: false,
  4.1038 -		checkClone: false,
  4.1039 -		scriptEval: false,
  4.1040 -		noCloneEvent: true,
  4.1041 -		boxModel: null,
  4.1042 -		inlineBlockNeedsLayout: false,
  4.1043 -		shrinkWrapBlocks: false,
  4.1044 -		reliableHiddenOffsets: true
  4.1045 -	};
  4.1046 -
  4.1047 -	// Make sure that the options inside disabled selects aren't marked as disabled
  4.1048 -	// (WebKit marks them as diabled)
  4.1049 -	select.disabled = true;
  4.1050 -	jQuery.support.optDisabled = !opt.disabled;
  4.1051 -
  4.1052 -	script.type = "text/javascript";
  4.1053 -	try {
  4.1054 -		script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
  4.1055 -	} catch(e) {}
  4.1056 -
  4.1057 -	root.insertBefore( script, root.firstChild );
  4.1058 -
  4.1059 -	// Make sure that the execution of code works by injecting a script
  4.1060 -	// tag with appendChild/createTextNode
  4.1061 -	// (IE doesn't support this, fails, and uses .text instead)
  4.1062 -	if ( window[ id ] ) {
  4.1063 -		jQuery.support.scriptEval = true;
  4.1064 -		delete window[ id ];
  4.1065 -	}
  4.1066 -
  4.1067 -	// Test to see if it's possible to delete an expando from an element
  4.1068 -	// Fails in Internet Explorer
  4.1069 -	try {
  4.1070 -		delete script.test;
  4.1071 -
  4.1072 -	} catch(e) {
  4.1073 -		jQuery.support.deleteExpando = false;
  4.1074 -	}
  4.1075 -
  4.1076 -	root.removeChild( script );
  4.1077 -
  4.1078 -	if ( div.attachEvent && div.fireEvent ) {
  4.1079 -		div.attachEvent("onclick", function click() {
  4.1080 -			// Cloning a node shouldn't copy over any
  4.1081 -			// bound event handlers (IE does this)
  4.1082 -			jQuery.support.noCloneEvent = false;
  4.1083 -			div.detachEvent("onclick", click);
  4.1084 -		});
  4.1085 -		div.cloneNode(true).fireEvent("onclick");
  4.1086 -	}
  4.1087 -
  4.1088 -	div = document.createElement("div");
  4.1089 -	div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
  4.1090 -
  4.1091 -	var fragment = document.createDocumentFragment();
  4.1092 -	fragment.appendChild( div.firstChild );
  4.1093 -
  4.1094 -	// WebKit doesn't clone checked state correctly in fragments
  4.1095 -	jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
  4.1096 -
  4.1097 -	// Figure out if the W3C box model works as expected
  4.1098 -	// document.body must exist before we can do this
  4.1099 -	jQuery(function() {
  4.1100 -		var div = document.createElement("div");
  4.1101 -		div.style.width = div.style.paddingLeft = "1px";
  4.1102 -
  4.1103 -		document.body.appendChild( div );
  4.1104 -		jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
  4.1105 -
  4.1106 -		if ( "zoom" in div.style ) {
  4.1107 -			// Check if natively block-level elements act like inline-block
  4.1108 -			// elements when setting their display to 'inline' and giving
  4.1109 -			// them layout
  4.1110 -			// (IE < 8 does this)
  4.1111 -			div.style.display = "inline";
  4.1112 -			div.style.zoom = 1;
  4.1113 -			jQuery.support.inlineBlockNeedsLayout = div.offsetWidth === 2;
  4.1114 -
  4.1115 -			// Check if elements with layout shrink-wrap their children
  4.1116 -			// (IE 6 does this)
  4.1117 -			div.style.display = "";
  4.1118 -			div.innerHTML = "<div style='width:4px;'></div>";
  4.1119 -			jQuery.support.shrinkWrapBlocks = div.offsetWidth !== 2;
  4.1120 -		}
  4.1121 -
  4.1122 -		div.innerHTML = "<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";
  4.1123 -		var tds = div.getElementsByTagName("td");
  4.1124 -
  4.1125 -		// Check if table cells still have offsetWidth/Height when they are set
  4.1126 -		// to display:none and there are still other visible table cells in a
  4.1127 -		// table row; if so, offsetWidth/Height are not reliable for use when
  4.1128 -		// determining if an element has been hidden directly using
  4.1129 -		// display:none (it is still safe to use offsets if a parent element is
  4.1130 -		// hidden; don safety goggles and see bug #4512 for more information).
  4.1131 -		// (only IE 8 fails this test)
  4.1132 -		jQuery.support.reliableHiddenOffsets = tds[0].offsetHeight === 0;
  4.1133 -
  4.1134 -		tds[0].style.display = "";
  4.1135 -		tds[1].style.display = "none";
  4.1136 -
  4.1137 -		// Check if empty table cells still have offsetWidth/Height
  4.1138 -		// (IE < 8 fail this test)
  4.1139 -		jQuery.support.reliableHiddenOffsets = jQuery.support.reliableHiddenOffsets && tds[0].offsetHeight === 0;
  4.1140 -		div.innerHTML = "";
  4.1141 -
  4.1142 -		document.body.removeChild( div ).style.display = "none";
  4.1143 -		div = tds = null;
  4.1144 -	});
  4.1145 -
  4.1146 -	// Technique from Juriy Zaytsev
  4.1147 -	// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
  4.1148 -	var eventSupported = function( eventName ) {
  4.1149 -		var el = document.createElement("div");
  4.1150 -		eventName = "on" + eventName;
  4.1151 -
  4.1152 -		var isSupported = (eventName in el);
  4.1153 -		if ( !isSupported ) {
  4.1154 -			el.setAttribute(eventName, "return;");
  4.1155 -			isSupported = typeof el[eventName] === "function";
  4.1156 -		}
  4.1157 -		el = null;
  4.1158 -
  4.1159 -		return isSupported;
  4.1160 -	};
  4.1161 -
  4.1162 -	jQuery.support.submitBubbles = eventSupported("submit");
  4.1163 -	jQuery.support.changeBubbles = eventSupported("change");
  4.1164 -
  4.1165 -	// release memory in IE
  4.1166 -	root = script = div = all = a = null;
  4.1167 -})();
  4.1168 -
  4.1169 -
  4.1170 -
  4.1171 -var windowData = {},
  4.1172 -	rbrace = /^(?:\{.*\}|\[.*\])$/;
  4.1173 -
  4.1174 -jQuery.extend({
  4.1175 -	cache: {},
  4.1176 -
  4.1177 -	// Please use with caution
  4.1178 -	uuid: 0,
  4.1179 -
  4.1180 -	// Unique for each copy of jQuery on the page	
  4.1181 -	expando: "jQuery" + jQuery.now(),
  4.1182 -
  4.1183 -	// The following elements throw uncatchable exceptions if you
  4.1184 -	// attempt to add expando properties to them.
  4.1185 -	noData: {
  4.1186 -		"embed": true,
  4.1187 -		// Ban all objects except for Flash (which handle expandos)
  4.1188 -		"object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
  4.1189 -		"applet": true
  4.1190 -	},
  4.1191 -
  4.1192 -	data: function( elem, name, data ) {
  4.1193 -		if ( !jQuery.acceptData( elem ) ) {
  4.1194 -			return;
  4.1195 -		}
  4.1196 -
  4.1197 -		elem = elem == window ?
  4.1198 -			windowData :
  4.1199 -			elem;
  4.1200 -
  4.1201 -		var isNode = elem.nodeType,
  4.1202 -			id = isNode ? elem[ jQuery.expando ] : null,
  4.1203 -			cache = jQuery.cache, thisCache;
  4.1204 -
  4.1205 -		if ( isNode && !id && typeof name === "string" && data === undefined ) {
  4.1206 -			return;
  4.1207 -		}
  4.1208 -
  4.1209 -		// Get the data from the object directly
  4.1210 -		if ( !isNode ) {
  4.1211 -			cache = elem;
  4.1212 -
  4.1213 -		// Compute a unique ID for the element
  4.1214 -		} else if ( !id ) {
  4.1215 -			elem[ jQuery.expando ] = id = ++jQuery.uuid;
  4.1216 -		}
  4.1217 -
  4.1218 -		// Avoid generating a new cache unless none exists and we
  4.1219 -		// want to manipulate it.
  4.1220 -		if ( typeof name === "object" ) {
  4.1221 -			if ( isNode ) {
  4.1222 -				cache[ id ] = jQuery.extend(cache[ id ], name);
  4.1223 -
  4.1224 -			} else {
  4.1225 -				jQuery.extend( cache, name );
  4.1226 -			}
  4.1227 -
  4.1228 -		} else if ( isNode && !cache[ id ] ) {
  4.1229 -			cache[ id ] = {};
  4.1230 -		}
  4.1231 -
  4.1232 -		thisCache = isNode ? cache[ id ] : cache;
  4.1233 -
  4.1234 -		// Prevent overriding the named cache with undefined values
  4.1235 -		if ( data !== undefined ) {
  4.1236 -			thisCache[ name ] = data;
  4.1237 -		}
  4.1238 -
  4.1239 -		return typeof name === "string" ? thisCache[ name ] : thisCache;
  4.1240 -	},
  4.1241 -
  4.1242 -	removeData: function( elem, name ) {
  4.1243 -		if ( !jQuery.acceptData( elem ) ) {
  4.1244 -			return;
  4.1245 -		}
  4.1246 -
  4.1247 -		elem = elem == window ?
  4.1248 -			windowData :
  4.1249 -			elem;
  4.1250 -
  4.1251 -		var isNode = elem.nodeType,
  4.1252 -			id = isNode ? elem[ jQuery.expando ] : elem,
  4.1253 -			cache = jQuery.cache,
  4.1254 -			thisCache = isNode ? cache[ id ] : id;
  4.1255 -
  4.1256 -		// If we want to remove a specific section of the element's data
  4.1257 -		if ( name ) {
  4.1258 -			if ( thisCache ) {
  4.1259 -				// Remove the section of cache data
  4.1260 -				delete thisCache[ name ];
  4.1261 -
  4.1262 -				// If we've removed all the data, remove the element's cache
  4.1263 -				if ( isNode && jQuery.isEmptyObject(thisCache) ) {
  4.1264 -					jQuery.removeData( elem );
  4.1265 -				}
  4.1266 -			}
  4.1267 -
  4.1268 -		// Otherwise, we want to remove all of the element's data
  4.1269 -		} else {
  4.1270 -			if ( isNode && jQuery.support.deleteExpando ) {
  4.1271 -				delete elem[ jQuery.expando ];
  4.1272 -
  4.1273 -			} else if ( elem.removeAttribute ) {
  4.1274 -				elem.removeAttribute( jQuery.expando );
  4.1275 -
  4.1276 -			// Completely remove the data cache
  4.1277 -			} else if ( isNode ) {
  4.1278 -				delete cache[ id ];
  4.1279 -
  4.1280 -			// Remove all fields from the object
  4.1281 -			} else {
  4.1282 -				for ( var n in elem ) {
  4.1283 -					delete elem[ n ];
  4.1284 -				}
  4.1285 -			}
  4.1286 -		}
  4.1287 -	},
  4.1288 -
  4.1289 -	// A method for determining if a DOM node can handle the data expando
  4.1290 -	acceptData: function( elem ) {
  4.1291 -		if ( elem.nodeName ) {
  4.1292 -			var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
  4.1293 -
  4.1294 -			if ( match ) {
  4.1295 -				return !(match === true || elem.getAttribute("classid") !== match);
  4.1296 -			}
  4.1297 -		}
  4.1298 -
  4.1299 -		return true;
  4.1300 -	}
  4.1301 -});
  4.1302 -
  4.1303 -jQuery.fn.extend({
  4.1304 -	data: function( key, value ) {
  4.1305 -		var data = null;
  4.1306 -
  4.1307 -		if ( typeof key === "undefined" ) {
  4.1308 -			if ( this.length ) {
  4.1309 -				var attr = this[0].attributes, name;
  4.1310 -				data = jQuery.data( this[0] );
  4.1311 -
  4.1312 -				for ( var i = 0, l = attr.length; i < l; i++ ) {
  4.1313 -					name = attr[i].name;
  4.1314 -
  4.1315 -					if ( name.indexOf( "data-" ) === 0 ) {
  4.1316 -						name = name.substr( 5 );
  4.1317 -						dataAttr( this[0], name, data[ name ] );
  4.1318 -					}
  4.1319 -				}
  4.1320 -			}
  4.1321 -
  4.1322 -			return data;
  4.1323 -
  4.1324 -		} else if ( typeof key === "object" ) {
  4.1325 -			return this.each(function() {
  4.1326 -				jQuery.data( this, key );
  4.1327 -			});
  4.1328 -		}
  4.1329 -
  4.1330 -		var parts = key.split(".");
  4.1331 -		parts[1] = parts[1] ? "." + parts[1] : "";
  4.1332 -
  4.1333 -		if ( value === undefined ) {
  4.1334 -			data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
  4.1335 -
  4.1336 -			// Try to fetch any internally stored data first
  4.1337 -			if ( data === undefined && this.length ) {
  4.1338 -				data = jQuery.data( this[0], key );
  4.1339 -				data = dataAttr( this[0], key, data );
  4.1340 -			}
  4.1341 -
  4.1342 -			return data === undefined && parts[1] ?
  4.1343 -				this.data( parts[0] ) :
  4.1344 -				data;
  4.1345 -
  4.1346 -		} else {
  4.1347 -			return this.each(function() {
  4.1348 -				var $this = jQuery( this ),
  4.1349 -					args = [ parts[0], value ];
  4.1350 -
  4.1351 -				$this.triggerHandler( "setData" + parts[1] + "!", args );
  4.1352 -				jQuery.data( this, key, value );
  4.1353 -				$this.triggerHandler( "changeData" + parts[1] + "!", args );
  4.1354 -			});
  4.1355 -		}
  4.1356 -	},
  4.1357 -
  4.1358 -	removeData: function( key ) {
  4.1359 -		return this.each(function() {
  4.1360 -			jQuery.removeData( this, key );
  4.1361 -		});
  4.1362 -	}
  4.1363 -});
  4.1364 -
  4.1365 -function dataAttr( elem, key, data ) {
  4.1366 -	// If nothing was found internally, try to fetch any
  4.1367 -	// data from the HTML5 data-* attribute
  4.1368 -	if ( data === undefined && elem.nodeType === 1 ) {
  4.1369 -		data = elem.getAttribute( "data-" + key );
  4.1370 -
  4.1371 -		if ( typeof data === "string" ) {
  4.1372 -			try {
  4.1373 -				data = data === "true" ? true :
  4.1374 -				data === "false" ? false :
  4.1375 -				data === "null" ? null :
  4.1376 -				!jQuery.isNaN( data ) ? parseFloat( data ) :
  4.1377 -					rbrace.test( data ) ? jQuery.parseJSON( data ) :
  4.1378 -					data;
  4.1379 -			} catch( e ) {}
  4.1380 -
  4.1381 -			// Make sure we set the data so it isn't changed later
  4.1382 -			jQuery.data( elem, key, data );
  4.1383 -
  4.1384 -		} else {
  4.1385 -			data = undefined;
  4.1386 -		}
  4.1387 -	}
  4.1388 -
  4.1389 -	return data;
  4.1390 -}
  4.1391 -
  4.1392 -
  4.1393 -
  4.1394 -
  4.1395 -jQuery.extend({
  4.1396 -	queue: function( elem, type, data ) {
  4.1397 -		if ( !elem ) {
  4.1398 -			return;
  4.1399 -		}
  4.1400 -
  4.1401 -		type = (type || "fx") + "queue";
  4.1402 -		var q = jQuery.data( elem, type );
  4.1403 -
  4.1404 -		// Speed up dequeue by getting out quickly if this is just a lookup
  4.1405 -		if ( !data ) {
  4.1406 -			return q || [];
  4.1407 -		}
  4.1408 -
  4.1409 -		if ( !q || jQuery.isArray(data) ) {
  4.1410 -			q = jQuery.data( elem, type, jQuery.makeArray(data) );
  4.1411 -
  4.1412 -		} else {
  4.1413 -			q.push( data );
  4.1414 -		}
  4.1415 -
  4.1416 -		return q;
  4.1417 -	},
  4.1418 -
  4.1419 -	dequeue: function( elem, type ) {
  4.1420 -		type = type || "fx";
  4.1421 -
  4.1422 -		var queue = jQuery.queue( elem, type ),
  4.1423 -			fn = queue.shift();
  4.1424 -
  4.1425 -		// If the fx queue is dequeued, always remove the progress sentinel
  4.1426 -		if ( fn === "inprogress" ) {
  4.1427 -			fn = queue.shift();
  4.1428 -		}
  4.1429 -
  4.1430 -		if ( fn ) {
  4.1431 -			// Add a progress sentinel to prevent the fx queue from being
  4.1432 -			// automatically dequeued
  4.1433 -			if ( type === "fx" ) {
  4.1434 -				queue.unshift("inprogress");
  4.1435 -			}
  4.1436 -
  4.1437 -			fn.call(elem, function() {
  4.1438 -				jQuery.dequeue(elem, type);
  4.1439 -			});
  4.1440 -		}
  4.1441 -	}
  4.1442 -});
  4.1443 -
  4.1444 -jQuery.fn.extend({
  4.1445 -	queue: function( type, data ) {
  4.1446 -		if ( typeof type !== "string" ) {
  4.1447 -			data = type;
  4.1448 -			type = "fx";
  4.1449 -		}
  4.1450 -
  4.1451 -		if ( data === undefined ) {
  4.1452 -			return jQuery.queue( this[0], type );
  4.1453 -		}
  4.1454 -		return this.each(function( i ) {
  4.1455 -			var queue = jQuery.queue( this, type, data );
  4.1456 -
  4.1457 -			if ( type === "fx" && queue[0] !== "inprogress" ) {
  4.1458 -				jQuery.dequeue( this, type );
  4.1459 -			}
  4.1460 -		});
  4.1461 -	},
  4.1462 -	dequeue: function( type ) {
  4.1463 -		return this.each(function() {
  4.1464 -			jQuery.dequeue( this, type );
  4.1465 -		});
  4.1466 -	},
  4.1467 -
  4.1468 -	// Based off of the plugin by Clint Helfers, with permission.
  4.1469 -	// http://blindsignals.com/index.php/2009/07/jquery-delay/
  4.1470 -	delay: function( time, type ) {
  4.1471 -		time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
  4.1472 -		type = type || "fx";
  4.1473 -
  4.1474 -		return this.queue( type, function() {
  4.1475 -			var elem = this;
  4.1476 -			setTimeout(function() {
  4.1477 -				jQuery.dequeue( elem, type );
  4.1478 -			}, time );
  4.1479 -		});
  4.1480 -	},
  4.1481 -
  4.1482 -	clearQueue: function( type ) {
  4.1483 -		return this.queue( type || "fx", [] );
  4.1484 -	}
  4.1485 -});
  4.1486 -
  4.1487 -
  4.1488 -
  4.1489 -
  4.1490 -var rclass = /[\n\t]/g,
  4.1491 -	rspaces = /\s+/,
  4.1492 -	rreturn = /\r/g,
  4.1493 -	rspecialurl = /^(?:href|src|style)$/,
  4.1494 -	rtype = /^(?:button|input)$/i,
  4.1495 -	rfocusable = /^(?:button|input|object|select|textarea)$/i,
  4.1496 -	rclickable = /^a(?:rea)?$/i,
  4.1497 -	rradiocheck = /^(?:radio|checkbox)$/i;
  4.1498 -
  4.1499 -jQuery.props = {
  4.1500 -	"for": "htmlFor",
  4.1501 -	"class": "className",
  4.1502 -	readonly: "readOnly",
  4.1503 -	maxlength: "maxLength",
  4.1504 -	cellspacing: "cellSpacing",
  4.1505 -	rowspan: "rowSpan",
  4.1506 -	colspan: "colSpan",
  4.1507 -	tabindex: "tabIndex",
  4.1508 -	usemap: "useMap",
  4.1509 -	frameborder: "frameBorder"
  4.1510 -};
  4.1511 -
  4.1512 -jQuery.fn.extend({
  4.1513 -	attr: function( name, value ) {
  4.1514 -		return jQuery.access( this, name, value, true, jQuery.attr );
  4.1515 -	},
  4.1516 -
  4.1517 -	removeAttr: function( name, fn ) {
  4.1518 -		return this.each(function(){
  4.1519 -			jQuery.attr( this, name, "" );
  4.1520 -			if ( this.nodeType === 1 ) {
  4.1521 -				this.removeAttribute( name );
  4.1522 -			}
  4.1523 -		});
  4.1524 -	},
  4.1525 -
  4.1526 -	addClass: function( value ) {
  4.1527 -		if ( jQuery.isFunction(value) ) {
  4.1528 -			return this.each(function(i) {
  4.1529 -				var self = jQuery(this);
  4.1530 -				self.addClass( value.call(this, i, self.attr("class")) );
  4.1531 -			});
  4.1532 -		}
  4.1533 -
  4.1534 -		if ( value && typeof value === "string" ) {
  4.1535 -			var classNames = (value || "").split( rspaces );
  4.1536 -
  4.1537 -			for ( var i = 0, l = this.length; i < l; i++ ) {
  4.1538 -				var elem = this[i];
  4.1539 -
  4.1540 -				if ( elem.nodeType === 1 ) {
  4.1541 -					if ( !elem.className ) {
  4.1542 -						elem.className = value;
  4.1543 -
  4.1544 -					} else {
  4.1545 -						var className = " " + elem.className + " ",
  4.1546 -							setClass = elem.className;
  4.1547 -
  4.1548 -						for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
  4.1549 -							if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
  4.1550 -								setClass += " " + classNames[c];
  4.1551 -							}
  4.1552 -						}
  4.1553 -						elem.className = jQuery.trim( setClass );
  4.1554 -					}
  4.1555 -				}
  4.1556 -			}
  4.1557 -		}
  4.1558 -
  4.1559 -		return this;
  4.1560 -	},
  4.1561 -
  4.1562 -	removeClass: function( value ) {
  4.1563 -		if ( jQuery.isFunction(value) ) {
  4.1564 -			return this.each(function(i) {
  4.1565 -				var self = jQuery(this);
  4.1566 -				self.removeClass( value.call(this, i, self.attr("class")) );
  4.1567 -			});
  4.1568 -		}
  4.1569 -
  4.1570 -		if ( (value && typeof value === "string") || value === undefined ) {
  4.1571 -			var classNames = (value || "").split( rspaces );
  4.1572 -
  4.1573 -			for ( var i = 0, l = this.length; i < l; i++ ) {
  4.1574 -				var elem = this[i];
  4.1575 -
  4.1576 -				if ( elem.nodeType === 1 && elem.className ) {
  4.1577 -					if ( value ) {
  4.1578 -						var className = (" " + elem.className + " ").replace(rclass, " ");
  4.1579 -						for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
  4.1580 -							className = className.replace(" " + classNames[c] + " ", " ");
  4.1581 -						}
  4.1582 -						elem.className = jQuery.trim( className );
  4.1583 -
  4.1584 -					} else {
  4.1585 -						elem.className = "";
  4.1586 -					}
  4.1587 -				}
  4.1588 -			}
  4.1589 -		}
  4.1590 -
  4.1591 -		return this;
  4.1592 -	},
  4.1593 -
  4.1594 -	toggleClass: function( value, stateVal ) {
  4.1595 -		var type = typeof value,
  4.1596 -			isBool = typeof stateVal === "boolean";
  4.1597 -
  4.1598 -		if ( jQuery.isFunction( value ) ) {
  4.1599 -			return this.each(function(i) {
  4.1600 -				var self = jQuery(this);
  4.1601 -				self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
  4.1602 -			});
  4.1603 -		}
  4.1604 -
  4.1605 -		return this.each(function() {
  4.1606 -			if ( type === "string" ) {
  4.1607 -				// toggle individual class names
  4.1608 -				var className,
  4.1609 -					i = 0,
  4.1610 -					self = jQuery( this ),
  4.1611 -					state = stateVal,
  4.1612 -					classNames = value.split( rspaces );
  4.1613 -
  4.1614 -				while ( (className = classNames[ i++ ]) ) {
  4.1615 -					// check each className given, space seperated list
  4.1616 -					state = isBool ? state : !self.hasClass( className );
  4.1617 -					self[ state ? "addClass" : "removeClass" ]( className );
  4.1618 -				}
  4.1619 -
  4.1620 -			} else if ( type === "undefined" || type === "boolean" ) {
  4.1621 -				if ( this.className ) {
  4.1622 -					// store className if set
  4.1623 -					jQuery.data( this, "__className__", this.className );
  4.1624 -				}
  4.1625 -
  4.1626 -				// toggle whole className
  4.1627 -				this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || "";
  4.1628 -			}
  4.1629 -		});
  4.1630 -	},
  4.1631 -
  4.1632 -	hasClass: function( selector ) {
  4.1633 -		var className = " " + selector + " ";
  4.1634 -		for ( var i = 0, l = this.length; i < l; i++ ) {
  4.1635 -			if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
  4.1636 -				return true;
  4.1637 -			}
  4.1638 -		}
  4.1639 -
  4.1640 -		return false;
  4.1641 -	},
  4.1642 -
  4.1643 -	val: function( value ) {
  4.1644 -		if ( !arguments.length ) {
  4.1645 -			var elem = this[0];
  4.1646 -
  4.1647 -			if ( elem ) {
  4.1648 -				if ( jQuery.nodeName( elem, "option" ) ) {
  4.1649 -					// attributes.value is undefined in Blackberry 4.7 but
  4.1650 -					// uses .value. See #6932
  4.1651 -					var val = elem.attributes.value;
  4.1652 -					return !val || val.specified ? elem.value : elem.text;
  4.1653 -				}
  4.1654 -
  4.1655 -				// We need to handle select boxes special
  4.1656 -				if ( jQuery.nodeName( elem, "select" ) ) {
  4.1657 -					var index = elem.selectedIndex,
  4.1658 -						values = [],
  4.1659 -						options = elem.options,
  4.1660 -						one = elem.type === "select-one";
  4.1661 -
  4.1662 -					// Nothing was selected
  4.1663 -					if ( index < 0 ) {
  4.1664 -						return null;
  4.1665 -					}
  4.1666 -
  4.1667 -					// Loop through all the selected options
  4.1668 -					for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
  4.1669 -						var option = options[ i ];
  4.1670 -
  4.1671 -						// Don't return options that are disabled or in a disabled optgroup
  4.1672 -						if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && 
  4.1673 -								(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
  4.1674 -
  4.1675 -							// Get the specific value for the option
  4.1676 -							value = jQuery(option).val();
  4.1677 -
  4.1678 -							// We don't need an array for one selects
  4.1679 -							if ( one ) {
  4.1680 -								return value;
  4.1681 -							}
  4.1682 -
  4.1683 -							// Multi-Selects return an array
  4.1684 -							values.push( value );
  4.1685 -						}
  4.1686 -					}
  4.1687 -
  4.1688 -					return values;
  4.1689 -				}
  4.1690 -
  4.1691 -				// Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
  4.1692 -				if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
  4.1693 -					return elem.getAttribute("value") === null ? "on" : elem.value;
  4.1694 -				}
  4.1695 -				
  4.1696 -
  4.1697 -				// Everything else, we just grab the value
  4.1698 -				return (elem.value || "").replace(rreturn, "");
  4.1699 -
  4.1700 -			}
  4.1701 -
  4.1702 -			return undefined;
  4.1703 -		}
  4.1704 -
  4.1705 -		var isFunction = jQuery.isFunction(value);
  4.1706 -
  4.1707 -		return this.each(function(i) {
  4.1708 -			var self = jQuery(this), val = value;
  4.1709 -
  4.1710 -			if ( this.nodeType !== 1 ) {
  4.1711 -				return;
  4.1712 -			}
  4.1713 -
  4.1714 -			if ( isFunction ) {
  4.1715 -				val = value.call(this, i, self.val());
  4.1716 -			}
  4.1717 -
  4.1718 -			// Treat null/undefined as ""; convert numbers to string
  4.1719 -			if ( val == null ) {
  4.1720 -				val = "";
  4.1721 -			} else if ( typeof val === "number" ) {
  4.1722 -				val += "";
  4.1723 -			} else if ( jQuery.isArray(val) ) {
  4.1724 -				val = jQuery.map(val, function (value) {
  4.1725 -					return value == null ? "" : value + "";
  4.1726 -				});
  4.1727 -			}
  4.1728 -
  4.1729 -			if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
  4.1730 -				this.checked = jQuery.inArray( self.val(), val ) >= 0;
  4.1731 -
  4.1732 -			} else if ( jQuery.nodeName( this, "select" ) ) {
  4.1733 -				var values = jQuery.makeArray(val);
  4.1734 -
  4.1735 -				jQuery( "option", this ).each(function() {
  4.1736 -					this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
  4.1737 -				});
  4.1738 -
  4.1739 -				if ( !values.length ) {
  4.1740 -					this.selectedIndex = -1;
  4.1741 -				}
  4.1742 -
  4.1743 -			} else {
  4.1744 -				this.value = val;
  4.1745 -			}
  4.1746 -		});
  4.1747 -	}
  4.1748 -});
  4.1749 -
  4.1750 -jQuery.extend({
  4.1751 -	attrFn: {
  4.1752 -		val: true,
  4.1753 -		css: true,
  4.1754 -		html: true,
  4.1755 -		text: true,
  4.1756 -		data: true,
  4.1757 -		width: true,
  4.1758 -		height: true,
  4.1759 -		offset: true
  4.1760 -	},
  4.1761 -		
  4.1762 -	attr: function( elem, name, value, pass ) {
  4.1763 -		// don't set attributes on text and comment nodes
  4.1764 -		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
  4.1765 -			return undefined;