First draft of Networked Service Discovery and Messaging
authorRich Tibbett <richt@opera.com>
Fri, 03 Aug 2012 12:59:17 +0200
changeset 180ee3a89da06e1
parent 179 811c927d1458
child 181 a66764a2345e
child 191 5e0da09685f7
First draft of Networked Service Discovery and Messaging
discovery-api/Overview.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 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/discovery-api/Overview.html	Fri Aug 03 12:59:17 2012 +0200
     1.3 @@ -0,0 +1,2149 @@
     1.4 +<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
     1.5 +<html lang="en" dir="ltr" about="" property="dc:language" content="en" prefix="dc: http://purl.org/dc/terms/ bibo: http://purl.org/ontology/bibo/ foaf: http://xmlns.com/foaf/0.1/ xsd: http://www.w3.org/2001/XMLSchema#">
     1.6 +<head>
     1.7 +    <title>Networked Service Discovery and Messaging</title>
     1.8 +    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
     1.9 +    <!-- This spec has been compiled with ReSpec v2 -->
    1.10 +
    1.11 +
    1.12 +    <style type="text/css">
    1.13 +      /**
    1.14 +       * SyntaxHighlighter
    1.15 +       * http://alexgorbatchev.com/SyntaxHighlighter
    1.16 +       *
    1.17 +       * SyntaxHighlighter is donationware. If you are using it, please donate.
    1.18 +       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
    1.19 +       *
    1.20 +       * @version
    1.21 +       * 3.0.83 (July 02 2010)
    1.22 +       *
    1.23 +       * @copyright
    1.24 +       * Copyright (C) 2004-2010 Alex Gorbatchev.
    1.25 +       *
    1.26 +       * @license
    1.27 +       * Dual licensed under the MIT and GPL licenses.
    1.28 +       */
    1.29 +      .syntaxhighlighter a,
    1.30 +      .syntaxhighlighter div,
    1.31 +      .syntaxhighlighter code,
    1.32 +      .syntaxhighlighter table,
    1.33 +      .syntaxhighlighter table td,
    1.34 +      .syntaxhighlighter table tr,
    1.35 +      .syntaxhighlighter table tbody,
    1.36 +      .syntaxhighlighter table thead,
    1.37 +      .syntaxhighlighter table caption,
    1.38 +      .syntaxhighlighter textarea {
    1.39 +        -moz-border-radius: 0 0 0 0 !important;
    1.40 +        -webkit-border-radius: 0 0 0 0 !important;
    1.41 +        background: none !important;
    1.42 +        border: 0 !important;
    1.43 +        bottom: auto !important;
    1.44 +        float: none !important;
    1.45 +        height: auto !important;
    1.46 +        left: auto !important;
    1.47 +        line-height: 1.1em !important;
    1.48 +        margin: 0 !important;
    1.49 +        outline: 0 !important;
    1.50 +        overflow: visible !important;
    1.51 +        padding: 0 !important;
    1.52 +        position: static !important;
    1.53 +        right: auto !important;
    1.54 +        text-align: left !important;
    1.55 +        top: auto !important;
    1.56 +        vertical-align: baseline !important;
    1.57 +        width: auto !important;
    1.58 +        box-sizing: content-box !important;
    1.59 +        font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
    1.60 +        font-weight: normal !important;
    1.61 +        font-style: normal !important;
    1.62 +        font-size: 1em !important;
    1.63 +        min-height: inherit !important;
    1.64 +        min-height: auto !important;
    1.65 +      }
    1.66 +
    1.67 +      .syntaxhighlighter {
    1.68 +        width: 100% !important;
    1.69 +        margin: 1em 0 1em 0 !important;
    1.70 +        position: relative !important;
    1.71 +        overflow: auto !important;
    1.72 +        font-size: 0.8em !important;
    1.73 +      }
    1.74 +      .syntaxhighlighter.source {
    1.75 +        overflow: hidden !important;
    1.76 +      }
    1.77 +      .syntaxhighlighter .bold {
    1.78 +        font-weight: bold !important;
    1.79 +      }
    1.80 +      .syntaxhighlighter .italic {
    1.81 +        font-style: italic !important;
    1.82 +      }
    1.83 +      .syntaxhighlighter .line {
    1.84 +        white-space: pre !important;
    1.85 +      }
    1.86 +      .syntaxhighlighter table {
    1.87 +        width: 100% !important;
    1.88 +      }
    1.89 +      .syntaxhighlighter table caption {
    1.90 +        text-align: left !important;
    1.91 +        padding: .5em 0 0.5em 1em !important;
    1.92 +      }
    1.93 +      .syntaxhighlighter table td.code {
    1.94 +        width: 100% !important;
    1.95 +      }
    1.96 +      .syntaxhighlighter table td.code .container {
    1.97 +        position: relative !important;
    1.98 +      }
    1.99 +      .syntaxhighlighter table td.code .container textarea {
   1.100 +        box-sizing: border-box !important;
   1.101 +        position: absolute !important;
   1.102 +        left: 0 !important;
   1.103 +        top: 0 !important;
   1.104 +        width: 100% !important;
   1.105 +        height: 100% !important;
   1.106 +        border: none !important;
   1.107 +
   1.108 +        padding-left: 1em !important;
   1.109 +        overflow: hidden !important;
   1.110 +        white-space: pre !important;
   1.111 +      }
   1.112 +      .syntaxhighlighter table td.gutter .line {
   1.113 +        text-align: right !important;
   1.114 +        padding: 0 0.5em 0 1em !important;
   1.115 +      }
   1.116 +      .syntaxhighlighter table td.code .line {
   1.117 +        padding: 0 1em !important;
   1.118 +      }
   1.119 +      .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
   1.120 +        padding-left: 0em !important;
   1.121 +      }
   1.122 +      .syntaxhighlighter.show {
   1.123 +        display: block !important;
   1.124 +      }
   1.125 +      .syntaxhighlighter.collapsed table {
   1.126 +        display: none !important;
   1.127 +      }
   1.128 +      .syntaxhighlighter.collapsed .toolbar {
   1.129 +        padding: 0.1em 0.8em 0em 0.8em !important;
   1.130 +        font-size: 1em !important;
   1.131 +        position: static !important;
   1.132 +        width: auto !important;
   1.133 +        height: auto !important;
   1.134 +      }
   1.135 +      .syntaxhighlighter.collapsed .toolbar span {
   1.136 +        display: inline !important;
   1.137 +        margin-right: 1em !important;
   1.138 +      }
   1.139 +      .syntaxhighlighter.collapsed .toolbar span a {
   1.140 +        padding: 0 !important;
   1.141 +        display: none !important;
   1.142 +      }
   1.143 +      .syntaxhighlighter.collapsed .toolbar span a.expandSource {
   1.144 +        display: inline !important;
   1.145 +      }
   1.146 +      .syntaxhighlighter .toolbar {
   1.147 +        position: absolute !important;
   1.148 +        right: 1px !important;
   1.149 +        top: 1px !important;
   1.150 +        width: 11px !important;
   1.151 +        height: 11px !important;
   1.152 +        font-size: 10px !important;
   1.153 +        z-index: 10 !important;
   1.154 +      }
   1.155 +      .syntaxhighlighter .toolbar span.title {
   1.156 +        display: inline !important;
   1.157 +      }
   1.158 +      .syntaxhighlighter .toolbar a {
   1.159 +        display: block !important;
   1.160 +        text-align: center !important;
   1.161 +        text-decoration: none !important;
   1.162 +        padding-top: 1px !important;
   1.163 +      }
   1.164 +      .syntaxhighlighter .toolbar a.expandSource {
   1.165 +        display: none !important;
   1.166 +      }
   1.167 +      .syntaxhighlighter.ie {
   1.168 +        font-size: .9em !important;
   1.169 +        padding: 1px 0 1px 0 !important;
   1.170 +      }
   1.171 +      .syntaxhighlighter.ie .toolbar {
   1.172 +        line-height: 8px !important;
   1.173 +      }
   1.174 +      .syntaxhighlighter.ie .toolbar a {
   1.175 +        padding-top: 0px !important;
   1.176 +      }
   1.177 +      .syntaxhighlighter.printing .line.alt1 .content,
   1.178 +      .syntaxhighlighter.printing .line.alt2 .content,
   1.179 +      .syntaxhighlighter.printing .line.highlighted .number,
   1.180 +      .syntaxhighlighter.printing .line.highlighted.alt1 .content,
   1.181 +      .syntaxhighlighter.printing .line.highlighted.alt2 .content {
   1.182 +        background: none !important;
   1.183 +      }
   1.184 +      .syntaxhighlighter.printing .line .number {
   1.185 +        color: #bbbbbb !important;
   1.186 +      }
   1.187 +      .syntaxhighlighter.printing .line .content {
   1.188 +        color: black !important;
   1.189 +      }
   1.190 +      .syntaxhighlighter.printing .toolbar {
   1.191 +        display: none !important;
   1.192 +      }
   1.193 +      .syntaxhighlighter.printing a {
   1.194 +        text-decoration: none !important;
   1.195 +      }
   1.196 +      .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
   1.197 +        color: black !important;
   1.198 +      }
   1.199 +      .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
   1.200 +        color: #008200 !important;
   1.201 +      }
   1.202 +      .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
   1.203 +        color: blue !important;
   1.204 +      }
   1.205 +      .syntaxhighlighter.printing .keyword {
   1.206 +        color: #006699 !important;
   1.207 +        font-weight: bold !important;
   1.208 +      }
   1.209 +      .syntaxhighlighter.printing .preprocessor {
   1.210 +        color: gray !important;
   1.211 +      }
   1.212 +      .syntaxhighlighter.printing .variable {
   1.213 +        color: #aa7700 !important;
   1.214 +      }
   1.215 +      .syntaxhighlighter.printing .value {
   1.216 +        color: #009900 !important;
   1.217 +      }
   1.218 +      .syntaxhighlighter.printing .functions {
   1.219 +        color: #ff1493 !important;
   1.220 +      }
   1.221 +      .syntaxhighlighter.printing .constants {
   1.222 +        color: #0066cc !important;
   1.223 +      }
   1.224 +      .syntaxhighlighter.printing .script {
   1.225 +        font-weight: bold !important;
   1.226 +      }
   1.227 +      .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
   1.228 +        color: gray !important;
   1.229 +      }
   1.230 +      .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
   1.231 +        color: #ff1493 !important;
   1.232 +      }
   1.233 +      .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
   1.234 +        color: red !important;
   1.235 +      }
   1.236 +      .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
   1.237 +        color: black !important;
   1.238 +      }
   1.239 +    </style>
   1.240 +    <style type="text/css">
   1.241 +      /**
   1.242 +       * SyntaxHighlighter
   1.243 +       * http://alexgorbatchev.com/SyntaxHighlighter
   1.244 +       *
   1.245 +       * SyntaxHighlighter is donationware. If you are using it, please donate.
   1.246 +       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
   1.247 +       *
   1.248 +       * @version
   1.249 +       * 3.0.83 (July 02 2010)
   1.250 +       *
   1.251 +       * @copyright
   1.252 +       * Copyright (C) 2004-2010 Alex Gorbatchev.
   1.253 +       *
   1.254 +       * @license
   1.255 +       * Dual licensed under the MIT and GPL licenses.
   1.256 +       */
   1.257 +      .syntaxhighlighter {
   1.258 +        background-color: none !important;
   1.259 +      }
   1.260 +      .syntaxhighlighter .line.alt1 {
   1.261 +        background-color: none !important;
   1.262 +      }
   1.263 +      .syntaxhighlighter .line.alt2 {
   1.264 +        background-color: none !important;
   1.265 +      }
   1.266 +      .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
   1.267 +        background-color: none !important;
   1.268 +      }
   1.269 +      .syntaxhighlighter .line.highlighted.number {
   1.270 +        color: black !important;
   1.271 +      }
   1.272 +      .syntaxhighlighter table caption {
   1.273 +        color: black !important;
   1.274 +      }
   1.275 +      .syntaxhighlighter .gutter {
   1.276 +        color: #afafaf !important;
   1.277 +      }
   1.278 +      .syntaxhighlighter .gutter .line {
   1.279 +        border-right: 3px solid #6ce26c !important;
   1.280 +      }
   1.281 +      .syntaxhighlighter .gutter .line.highlighted {
   1.282 +        background-color: #6ce26c !important;
   1.283 +        color: white !important;
   1.284 +      }
   1.285 +      .syntaxhighlighter.printing .line .content {
   1.286 +        border: none !important;
   1.287 +      }
   1.288 +      .syntaxhighlighter.collapsed {
   1.289 +        overflow: visible !important;
   1.290 +      }
   1.291 +      .syntaxhighlighter.collapsed .toolbar {
   1.292 +        color: blue !important;
   1.293 +        background: none !important;
   1.294 +        border: 1px solid #6ce26c !important;
   1.295 +      }
   1.296 +      .syntaxhighlighter.collapsed .toolbar a {
   1.297 +        color: blue !important;
   1.298 +      }
   1.299 +      .syntaxhighlighter.collapsed .toolbar a:hover {
   1.300 +        color: red !important;
   1.301 +      }
   1.302 +      .syntaxhighlighter .toolbar {
   1.303 +        color: white !important;
   1.304 +        background: #6ce26c !important;
   1.305 +        border: none !important;
   1.306 +      }
   1.307 +      .syntaxhighlighter .toolbar a {
   1.308 +        color: white !important;
   1.309 +      }
   1.310 +      .syntaxhighlighter .toolbar a:hover {
   1.311 +        color: black !important;
   1.312 +      }
   1.313 +      .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
   1.314 +        color: black !important;
   1.315 +      }
   1.316 +      .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
   1.317 +        color: #008200 !important;
   1.318 +      }
   1.319 +      .syntaxhighlighter .string, .syntaxhighlighter .string a {
   1.320 +        color: blue !important;
   1.321 +      }
   1.322 +      .syntaxhighlighter .keyword {
   1.323 +        color: #006699 !important;
   1.324 +      }
   1.325 +      .syntaxhighlighter .preprocessor {
   1.326 +        color: gray !important;
   1.327 +      }
   1.328 +      .syntaxhighlighter .variable {
   1.329 +        color: #aa7700 !important;
   1.330 +      }
   1.331 +      .syntaxhighlighter .value {
   1.332 +        color: #009900 !important;
   1.333 +      }
   1.334 +      .syntaxhighlighter .functions {
   1.335 +        color: #ff1493 !important;
   1.336 +      }
   1.337 +      .syntaxhighlighter .constants {
   1.338 +        color: #0066cc !important;
   1.339 +      }
   1.340 +      .syntaxhighlighter .script {
   1.341 +        font-weight: bold !important;
   1.342 +        color: #006699 !important;
   1.343 +        background-color: none !important;
   1.344 +      }
   1.345 +      .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
   1.346 +        color: gray !important;
   1.347 +      }
   1.348 +      .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
   1.349 +        color: #ff1493 !important;
   1.350 +      }
   1.351 +      .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
   1.352 +        color: red !important;
   1.353 +      }
   1.354 +
   1.355 +      .syntaxhighlighter .keyword {
   1.356 +        font-weight: bold !important;
   1.357 +      }
   1.358 +    </style>
   1.359 +
   1.360 +
   1.361 +
   1.362 +
   1.363 +
   1.364 +
   1.365 +    <style type="text/css">
   1.366 +      /* Custom CSS optimizations (Richard Tibbett) */
   1.367 +
   1.368 +      /* Add better spacing to sections */
   1.369 +      section, .section { margin-bottom: 2em; }
   1.370 +
   1.371 +      /* Reduce note & issue render size */
   1.372 +      .note, .issue { font-size:0.8em; }
   1.373 +
   1.374 +      /* Add addition spacing to <ol> and <ul> for rule definition */
   1.375 +      ol.rule li, ul.rule li { padding:0.6em; }
   1.376 +
   1.377 +      pre.widl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; position: relative; }
   1.378 +      pre.widl :link, pre.widl :visited { color: #000; background: transparent; }
   1.379 +      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 }
   1.380 +
   1.381 +      div.example { border: solid thin red; background: #F7DFE5; color: black; padding: 0.5em 1em; position: relative; margin: 1em 0 1em 4.6em; width: auto; }
   1.382 +      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 }
   1.383 +
   1.384 +      dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #DDFFDD; }
   1.385 +      hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
   1.386 +      dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
   1.387 +      dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
   1.388 +      dl.domintro dd p { margin: 0.5em 0; }
   1.389 +      dl.domintro code {font-size: inherit; font-style: italic; }
   1.390 +      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; }
   1.391 +    </style>
   1.392 +  <style type="text/css">
   1.393 +/*
   1.394 +    XXX this is not up to date with the needs of various other parts, it will require
   1.395 +        to be synched up with the latest developments
   1.396 +        It may be that this will be split up so that only the parts that are acually used
   1.397 +        by the document get to be included (e.g. WebIDL).
   1.398 +*/
   1.399 +
   1.400 +/*****************************************************************
   1.401 + * ReSpec 2 CSS
   1.402 + * Robin Berjon, 2010-01-04
   1.403 + *****************************************************************/
   1.404 +
   1.405 +/* --- INLINES --- */
   1.406 +em.rfc2119 {
   1.407 +    text-transform:     lowercase;
   1.408 +    font-variant:       small-caps;
   1.409 +    font-style:         normal;
   1.410 +    color:              #900;
   1.411 +}
   1.412 +
   1.413 +h1 acronym, h2 acronym, h3 acronym, h4 acronym, h5 acronym, h6 acronym, a acronym,
   1.414 +h1 abbr, h2 abbr, h3 abbr, h4 abbr, h5 abbr, h6 abbr, a abbr {
   1.415 +    border: none;
   1.416 +}
   1.417 +
   1.418 +dfn {
   1.419 +    font-weight:    bold;
   1.420 +}
   1.421 +
   1.422 +a.internalDFN {
   1.423 +    color:  inherit;
   1.424 +    border-bottom:  medium solid #99c;
   1.425 +    text-decoration:    none;
   1.426 +}
   1.427 +
   1.428 +a.externalDFN {
   1.429 +    color:  inherit;
   1.430 +    border-bottom:  medium dotted #ccc;
   1.431 +    text-decoration:    none;
   1.432 +}
   1.433 +
   1.434 +a.bibref {
   1.435 +    text-decoration:    none;
   1.436 +}
   1.437 +
   1.438 +code {
   1.439 +    color:  #ff4500;
   1.440 +}
   1.441 +
   1.442 +
   1.443 +/* --- WEB IDL --- */
   1.444 +pre.idl {
   1.445 +    border-top: 1px solid #90b8de;
   1.446 +    border-bottom: 1px solid #90b8de;
   1.447 +    padding:    1em;
   1.448 +    line-height:    120%;
   1.449 +}
   1.450 +
   1.451 +pre.idl::before {
   1.452 +    content:    "WebIDL";
   1.453 +    display:    block;
   1.454 +    width:      150px;
   1.455 +    background: #90b8de;
   1.456 +    color:  #fff;
   1.457 +    font-family:    initial;
   1.458 +    padding:    3px;
   1.459 +    font-weight:    bold;
   1.460 +    margin: -1em 0 1em -1em;
   1.461 +}
   1.462 +
   1.463 +.idlType {
   1.464 +    color:  #ff4500;
   1.465 +    font-weight:    bold;
   1.466 +    text-decoration:    none;
   1.467 +}
   1.468 +
   1.469 +/*.idlModule*/
   1.470 +/*.idlModuleID*/
   1.471 +/*.idlInterface*/
   1.472 +.idlInterfaceID {
   1.473 +    font-weight:    bold;
   1.474 +    color:  #005a9c;
   1.475 +}
   1.476 +
   1.477 +.idlSuperclass {
   1.478 +    font-style: italic;
   1.479 +    color:  #005a9c;
   1.480 +}
   1.481 +
   1.482 +/*.idlAttribute*/
   1.483 +.idlAttrType {
   1.484 +    color:  #005a9c;
   1.485 +}
   1.486 +.idlAttrName {
   1.487 +    color:  #ff4500;
   1.488 +}
   1.489 +.idlAttrName a {
   1.490 +    color:  #ff4500;
   1.491 +    border-bottom:  1px dotted #ff4500;
   1.492 +    text-decoration: none;
   1.493 +}
   1.494 +
   1.495 +/*.idlMethod*/
   1.496 +.idlMethType {
   1.497 +    color:  #005a9c;
   1.498 +}
   1.499 +.idlMethName {
   1.500 +    color:  #ff4500;
   1.501 +}
   1.502 +.idlMethName a {
   1.503 +    color:  #ff4500;
   1.504 +    border-bottom:  1px dotted #ff4500;
   1.505 +    text-decoration: none;
   1.506 +}
   1.507 +
   1.508 +/*.idlParam*/
   1.509 +.idlParamType {
   1.510 +    color:  #005a9c;
   1.511 +}
   1.512 +.idlParamName {
   1.513 +    font-style: italic;
   1.514 +}
   1.515 +
   1.516 +.extAttr {
   1.517 +    color:  #666;
   1.518 +}
   1.519 +
   1.520 +/*.idlConst*/
   1.521 +.idlConstType {
   1.522 +    color:  #005a9c;
   1.523 +}
   1.524 +.idlConstName {
   1.525 +    color:  #ff4500;
   1.526 +}
   1.527 +.idlConstName a {
   1.528 +    color:  #ff4500;
   1.529 +    border-bottom:  1px dotted #ff4500;
   1.530 +    text-decoration: none;
   1.531 +}
   1.532 +
   1.533 +/*.idlException*/
   1.534 +.idlExceptionID {
   1.535 +    font-weight:    bold;
   1.536 +    color:  #c00;
   1.537 +}
   1.538 +
   1.539 +.idlTypedefID, .idlTypedefType {
   1.540 +    color:  #005a9c;
   1.541 +}
   1.542 +
   1.543 +.idlRaises, .idlRaises a.idlType, .idlRaises a.idlType code, .excName a, .excName a code {
   1.544 +    color:  #c00;
   1.545 +    font-weight:    normal;
   1.546 +}
   1.547 +
   1.548 +.excName a {
   1.549 +    font-family:    monospace;
   1.550 +}
   1.551 +
   1.552 +.idlRaises a.idlType, .excName a.idlType {
   1.553 +    border-bottom:  1px dotted #c00;
   1.554 +}
   1.555 +
   1.556 +.excGetSetTrue, .excGetSetFalse, .prmNullTrue, .prmNullFalse, .prmOptTrue, .prmOptFalse {
   1.557 +    width:  45px;
   1.558 +    text-align: center;
   1.559 +}
   1.560 +.excGetSetTrue, .prmNullTrue, .prmOptTrue { color:  #0c0; }
   1.561 +.excGetSetFalse, .prmNullFalse, .prmOptFalse { color:  #c00; }
   1.562 +
   1.563 +.idlImplements a {
   1.564 +    font-weight:    bold;
   1.565 +}
   1.566 +
   1.567 +dl.attributes, dl.methods, dl.constants {
   1.568 +    margin-left:    2em;
   1.569 +}
   1.570 +
   1.571 +.attributes dt, .methods dt, .constants dt {
   1.572 +    font-weight:    normal;
   1.573 +}
   1.574 +
   1.575 +.attributes dt code, .methods dt code, .constants dt code {
   1.576 +    font-weight:    bold;
   1.577 +    color:  #000;
   1.578 +    font-family:    monospace;
   1.579 +}
   1.580 +
   1.581 +.attributes dt code {
   1.582 +    background:  #ffffd2;
   1.583 +}
   1.584 +
   1.585 +.attributes dt .idlAttrType code {
   1.586 +    color:  #005a9c;
   1.587 +    background:  transparent;
   1.588 +    font-family:    inherit;
   1.589 +    font-weight:    normal;
   1.590 +    font-style: italic;
   1.591 +}
   1.592 +
   1.593 +.methods dt code {
   1.594 +    background:  #d9e6f8;
   1.595 +}
   1.596 +
   1.597 +.constants dt code {
   1.598 +    background:  #ddffd2;
   1.599 +}
   1.600 +
   1.601 +.attributes dd, .methods dd, .constants dd {
   1.602 +    margin-bottom:  1em;
   1.603 +}
   1.604 +
   1.605 +table.parameters, table.exceptions {
   1.606 +    border-spacing: 0;
   1.607 +    border-collapse:    collapse;
   1.608 +    margin: 0.5em 0;
   1.609 +    width:  100%;
   1.610 +}
   1.611 +table.parameters { border-bottom:  1px solid #90b8de; }
   1.612 +table.exceptions { border-bottom:  1px solid #deb890; }
   1.613 +
   1.614 +.parameters th, .exceptions th {
   1.615 +    color:  #fff;
   1.616 +    padding:    3px 5px;
   1.617 +    text-align: left;
   1.618 +    font-family:    initial;
   1.619 +    font-weight:    normal;
   1.620 +    text-shadow:    #666 1px 1px 0;
   1.621 +}
   1.622 +.parameters th { background: #90b8de; }
   1.623 +.exceptions th { background: #deb890; }
   1.624 +
   1.625 +.parameters td, .exceptions td {
   1.626 +    padding:    3px 10px;
   1.627 +    border-top: 1px solid #ddd;
   1.628 +    vertical-align: top;
   1.629 +}
   1.630 +
   1.631 +.parameters tr:first-child td, .exceptions tr:first-child td {
   1.632 +    border-top: none;
   1.633 +}
   1.634 +
   1.635 +.parameters td.prmName, .exceptions td.excName, .exceptions td.excCodeName {
   1.636 +    width:  100px;
   1.637 +}
   1.638 +
   1.639 +.parameters td.prmType {
   1.640 +    width:  120px;
   1.641 +}
   1.642 +
   1.643 +table.exceptions table {
   1.644 +    border-spacing: 0;
   1.645 +    border-collapse:    collapse;
   1.646 +    width:  100%;
   1.647 +}
   1.648 +
   1.649 +/* --- TOC --- */
   1.650 +.toc a {
   1.651 +    text-decoration:    none;
   1.652 +}
   1.653 +
   1.654 +a .secno {
   1.655 +    color:  #000;
   1.656 +}
   1.657 +
   1.658 +/* --- TABLE --- */
   1.659 +table.simple {
   1.660 +    border-spacing: 0;
   1.661 +    border-collapse:    collapse;
   1.662 +    border-bottom:  3px solid #005a9c;
   1.663 +}
   1.664 +
   1.665 +.simple th {
   1.666 +    background: #005a9c;
   1.667 +    color:  #fff;
   1.668 +    padding:    3px 5px;
   1.669 +    text-align: left;
   1.670 +}
   1.671 +
   1.672 +.simple th[scope="row"] {
   1.673 +    background: inherit;
   1.674 +    color:  inherit;
   1.675 +    border-top: 1px solid #ddd;
   1.676 +}
   1.677 +
   1.678 +.simple td {
   1.679 +    padding:    3px 10px;
   1.680 +    border-top: 1px solid #ddd;
   1.681 +}
   1.682 +
   1.683 +.simple tr:nth-child(even) {
   1.684 +    background: #f0f6ff;
   1.685 +}
   1.686 +
   1.687 +/* --- DL --- */
   1.688 +.section dd > p:first-child {
   1.689 +    margin-top: 0;
   1.690 +}
   1.691 +
   1.692 +.section dd > p:last-child {
   1.693 +    margin-bottom: 0;
   1.694 +}
   1.695 +
   1.696 +.section dd {
   1.697 +    margin-bottom:  1em;
   1.698 +}
   1.699 +
   1.700 +.section dl.attrs dd, .section dl.eldef dd {
   1.701 +    margin-bottom:  0;
   1.702 +}
   1.703 +
   1.704 +/* --- EXAMPLES --- */
   1.705 +pre.example {
   1.706 +    border-top: 1px solid #ff4500;
   1.707 +    border-bottom: 1px solid #ff4500;
   1.708 +    padding:    1em;
   1.709 +    margin:     2em 0;
   1.710 +}
   1.711 +
   1.712 +pre.example::before {
   1.713 +    content:    "Example";
   1.714 +    display:    block;
   1.715 +    width:      150px;
   1.716 +    background: #ff4500;
   1.717 +    color:  #fff;
   1.718 +    font-family:    initial;
   1.719 +    padding:    3px;
   1.720 +    font-weight:    bold;
   1.721 +    margin: -1em 0 1em -1em;
   1.722 +}
   1.723 +
   1.724 +/* --- EDITORIAL NOTES --- */
   1.725 +.issue {
   1.726 +    padding:    1em;
   1.727 +    border: 1px solid #f00;
   1.728 +    background: #ffc;
   1.729 +}
   1.730 +
   1.731 +.issue::before {
   1.732 +    content:    "Issue";
   1.733 +    display:    block;
   1.734 +    width:  150px;
   1.735 +    margin: -1.5em 0 0.5em 0;
   1.736 +    font-weight:    bold;
   1.737 +    border: 1px solid #f00;
   1.738 +    background: #fff;
   1.739 +    padding:    3px 1em;
   1.740 +}
   1.741 +
   1.742 +.note {
   1.743 +    padding:    1em;
   1.744 +    border: 2px solid #cff6d9;
   1.745 +    background: #e2fff0;
   1.746 +}
   1.747 +
   1.748 +.note::before {
   1.749 +    content:    "Note";
   1.750 +    display:    block;
   1.751 +    width:  150px;
   1.752 +    margin: -1.5em 0 0.5em 0;
   1.753 +    font-weight:    bold;
   1.754 +    border: 1px solid #cff6d9;
   1.755 +    background: #fff;
   1.756 +    padding:    3px 1em;
   1.757 +}
   1.758 +
   1.759 +
   1.760 +/* --- SYNTAX HIGHLIGHTING --- */
   1.761 +/* Pretty printing styles. Used with prettify.js. */
   1.762 +.str { color: #080; }
   1.763 +.kwd { color: #008; }
   1.764 +.com { color: #800; }
   1.765 +.typ { color: #606; }
   1.766 +.lit { color: #066; }
   1.767 +.pun { color: #660; }
   1.768 +.pln { color: #000; }
   1.769 +.tag { color: #008; }
   1.770 +.atn { color: #606; }
   1.771 +.atv { color: #080; }
   1.772 +.dec { color: #606; }
   1.773 +/*pre.prettyprint { padding: 2px; border: 1px solid #888 }*/
   1.774 +
   1.775 +/* Specify class=linenums on a pre to get line numbering */
   1.776 +ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
   1.777 +li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 { list-style-type: none }
   1.778 +/* Alternate shading for lines */
   1.779 +li.L1, li.L3, li.L5, li.L7, li.L9 { background: #eee }
   1.780 +
   1.781 +@media print {
   1.782 +  .str { color: #060; }
   1.783 +  .kwd { color: #006; font-weight: bold; }
   1.784 +  .com { color: #600; font-style: italic; }
   1.785 +  .typ { color: #404; font-weight: bold; }
   1.786 +  .lit { color: #044; }
   1.787 +  .pun { color: #440; }
   1.788 +  .pln { color: #000; }
   1.789 +  .tag { color: #006; font-weight: bold; }
   1.790 +  .atn { color: #404; }
   1.791 +  .atv { color: #060; }
   1.792 +}
   1.793 +</style><link rel="stylesheet" href="http://www.w3.org/StyleSheets/TR/w3c-unofficial" type="text/css" media="all" charset="utf-8"></head>
   1.794 +
   1.795 +  <body><div class="head">
   1.796 +    <p>
   1.797 +
   1.798 +
   1.799 +    </p>
   1.800 +    <h1 class="title" id="title" rel="dc:title">Networked Service Discovery and Messaging</h1>
   1.801 +
   1.802 +    <h2 id="unofficial-draft-02-august-2012">Unofficial Draft 02 August 2012</h2>
   1.803 +    <dl>
   1.804 +
   1.805 +
   1.806 +
   1.807 +          <dt>Previous version:</dt><dd>   <a href="" rel="dc:replaces"></a></dd>
   1.808 +
   1.809 +
   1.810 +
   1.811 +
   1.812 +
   1.813 +    <dt>Editors:</dt>
   1.814 +
   1.815 +      <dd class="Editor" rel="bibo:editor"><span typeof="foaf:Person"><span class="name" property="foaf:name">Rich Tibbett</span>,
   1.816 +
   1.817 +            <a class="company" href="http://opera.com/" rel="foaf:workplaceHomepage">Opera Software ASA</a>
   1.818 +
   1.819 +
   1.820 +
   1.821 +
   1.822 +      </span></dd>
   1.823 +
   1.824 +      <dd class="Editor" rel="bibo:editor"><span typeof="foaf:Person"><span class="name" property="foaf:name">Clarke Stevens</span>,
   1.825 +
   1.826 +            <a class="company" href="http://cablelabs.com/" rel="foaf:workplaceHomepage">CableLabs</a>
   1.827 +
   1.828 +
   1.829 +
   1.830 +
   1.831 +      </span></dd>
   1.832 +
   1.833 +
   1.834 +
   1.835 +
   1.836 +
   1.837 +
   1.838 +    </dl>
   1.839 +
   1.840 +
   1.841 +
   1.842 +
   1.843 +
   1.844 +    <p class="copyright">
   1.845 +
   1.846 +
   1.847 +        This document is licensed under a <a class="subfoot" href="http://creativecommons.org/licenses/by/3.0/" rel="license">Creative
   1.848 +        Commons Attribution 3.0 License</a>.
   1.849 +
   1.850 +
   1.851 +    </p><hr></div>
   1.852 +    <div id="abstract" class="introductory section" property="dcterms:absract" datatype="" about="#abstract" typeof="bibo:Chapter"><h2>Abstract</h2>
   1.853 +      <p>
   1.854 +        This specification defines a mechanism for an HTML document to discover and subsequently communicate with <acronym title="Hypertext Transfer Protocol"><acronym title="Hypertext Transfer Protocol">HTTP</acronym></acronym>-based services
   1.855 +        advertised via common discovery protocols within a user's network.
   1.856 +      </p>
   1.857 +    </div><div id="sotd" class="introductory section" about="#sotd" typeof="bibo:Chapter"><h2>Status of This Document</h2>
   1.858 +    <p>This document is merely a public working draft of a potential specification. It has
   1.859 +    no official standing of any kind and does not represent the support or consensus of any
   1.860 +    standards organisation.</p></div><div id="toc" about="#toc" typeof="bibo:Chapter" class="section"><h2 class="introductory">Table of Contents</h2><ul class="toc"><li class="tocline"><a href="#introduction" class="tocxref"><span class="secno">1. </span>Introduction</a></li><li class="tocline"><a href="#conformance" class="tocxref"><span class="secno">2. </span>Conformance</a><ul class="toc"><li class="tocline"><a href="#dependencies" class="tocxref"><span class="secno">2.1 </span>Dependencies</a></li></ul></li><li class="tocline"><a href="#terminology" class="tocxref"><span class="secno">3. </span>Terminology</a></li><li class="tocline"><a href="#requesting-networked-services" class="tocxref"><span class="secno">4. </span>Requesting networked services</a><ul class="toc"><li class="tocline"><a href="#methods" class="tocxref"><span class="secno">4.1 </span>Methods</a></li><li class="tocline"><a href="#error-handling" class="tocxref"><span class="secno">4.2 </span>Error Handling</a></li></ul></li><li class="tocline"><a href="#obtaining-networked-services" class="tocxref"><span class="secno">5. </span>Obtaining networked services</a><ul class="toc"><li class="tocline"><a href="#attributes" class="tocxref"><span class="secno">5.1 </span>Attributes</a></li><li class="tocline"><a href="#methods-1" class="tocxref"><span class="secno">5.2 </span>Methods</a></li><li class="tocline"><a href="#events" class="tocxref"><span class="secno">5.3 </span>Events</a></li></ul></li><li class="tocline"><a href="#communicating-with-a-networked-service" class="tocxref"><span class="secno">6. </span>Communicating with a networked service</a><ul class="toc"><li class="tocline"><a href="#attributes-1" class="tocxref"><span class="secno">6.1 </span>Attributes</a></li><li class="tocline"><a href="#states" class="tocxref"><span class="secno">6.2 </span>States</a></li><li class="tocline"><a href="#events-1" class="tocxref"><span class="secno">6.3 </span>Events</a></li></ul></li><li class="tocline"><a href="#service-discovery" class="tocxref"><span class="secno">7. </span>Service Discovery</a><ul class="toc"><li class="tocline"><a href="#zeroconf--mdns---dns-sd" class="tocxref"><span class="secno">7.1 </span>Zeroconf (<acronym title="Multicast DNS"><acronym title="Multicast DNS">mDNS</acronym></acronym> + <acronym title="Domain Name System"><acronym title="Domain Name System">DNS</acronym></acronym>-<acronym title="Service Discovery"><acronym title="Service Discovery">SD</acronym></acronym>)</a></li><li class="tocline"><a href="#universal-plug-and-play--upnp" class="tocxref"><span class="secno">7.2 </span>Universal Plug-and-Play (<acronym title="Universal Plug-and-Play"><acronym title="Universal Plug-and-Play">UPnP</acronym></acronym>)</a></li><li class="tocline"><a href="#network-topology-monitoring" class="tocxref"><span class="secno">7.3 </span>Network Topology Monitoring</a></li></ul></li><li class="tocline"><a href="#garbage-collection" class="tocxref"><span class="secno">8. </span>Garbage collection</a></li><li class="tocline"><a href="#use-cases-and-requirements" class="tocxref"><span class="secno">9. </span>Use Cases and Requirements</a></li><li class="tocline"><a href="#examples" class="tocxref"><span class="secno">A. </span>Examples</a></li><li class="tocline"><a href="#acknowledgements" class="tocxref"><span class="secno">B. </span>Acknowledgements</a></li><li class="tocline"><a href="#references" class="tocxref"><span class="secno">C. </span>References</a><ul class="toc"><li class="tocline"><a href="#normative-references" class="tocxref"><span class="secno">C.1 </span>Normative references</a></li></ul></li></ul></div>
   1.861 +
   1.862 +
   1.863 +
   1.864 +    <div class="informative section" id="introduction" about="#introduction" typeof="bibo:Chapter">
   1.865 +      <!--OddPage--><h2><span class="secno">1. </span>Introduction</h2><em>This section is non-normative.</em>
   1.866 +
   1.867 +      <p>To enable Web pages to connect and communicate with Local-networked Services provided over <acronym title="Hypertext Transfer Protocol">HTTP</acronym>, this specification introduces the
   1.868 +      <a href="#navigatornetworkservice"><code>NavigatorNetworkService</code></a> interface.</p>
   1.869 +
   1.870 +      <p>
   1.871 +         Using this <acronym title="Application Programming Interface"><acronym title="Application Programming Interface">API</acronym></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,
   1.872 +         is expected before the web page is able to interact with any Local-networked Services.
   1.873 +      </p>
   1.874 +
   1.875 +      <p>
   1.876 +         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.
   1.877 +      </p>
   1.878 +
   1.879 +      <p>
   1.880 +         The user agent, having captured all advertised services on the network from the Service Discovery mechanisms included in this recommendation, attempts to match
   1.881 +      the requested service type to a discovered service according to the processing described herein.
   1.882 +      </p>
   1.883 +
   1.884 +      <p>
   1.885 +          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.
   1.886 +          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.
   1.887 +      </p>
   1.888 +
   1.889 +      <p>
   1.890 +         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
   1.891 +         authorized via the provided <acronym title="Application Programming Interface">API</acronym>.
   1.892 +         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
   1.893 +         connected Local-networked Service.
   1.894 +      </p>
   1.895 +
   1.896 +      <div class="example">
   1.897 +       <p>Example of requesting a <acronym title="Domain Name System">DNS</acronym>-<acronym title="Service Discovery">SD</acronym> advertised service:</p>
   1.898 +       <hr>
   1.899 +       <div><div id="highlighter_631369" class="syntaxhighlighter nogutter  js"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="js keyword">function</code> <code class="js plain">showServices( services ) {</code></div><div class="line number2 index1 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js comments">// Show a list of all the services provided to the web page</code></div><div class="line number3 index2 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js keyword">for</code><code class="js plain">(</code><code class="js keyword">var</code> <code class="js plain">i = 0, l = services.length; i &lt; l; i++) console.log( services[i].name );</code></div><div class="line number4 index3 alt1"><code class="js plain">}</code></div><div class="line number5 index4 alt2">&nbsp;</div><div class="line number6 index5 alt1"><code class="js plain">navigator.getNetworkServices(</code><code class="js string">'zeroconf:_boxee-jsonrpc._tcp'</code><code class="js plain">, showServices);</code></div></div></td></tr></tbody></table></div></div>
   1.900 +      </div>
   1.901 +
   1.902 +      <div class="example">
   1.903 +        <p>Example of requesting a <acronym title="Universal Plug-and-Play">UPnP</acronym> advertised service, also handling error conditions:</p>
   1.904 +        <hr>
   1.905 +        <div><div id="highlighter_906369" class="syntaxhighlighter nogutter  js"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="js keyword">function</code> <code class="js plain">showServices( services ) {</code></div><div class="line number2 index1 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js comments">// Show a list of all the services provided to the web page</code></div><div class="line number3 index2 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js keyword">for</code><code class="js plain">(</code><code class="js keyword">var</code> <code class="js plain">i = 0, l = services.length; i &lt; l; i++) console.log( services[i].name );</code></div><div class="line number4 index3 alt1"><code class="js plain">}</code></div><div class="line number5 index4 alt2">&nbsp;</div><div class="line number6 index5 alt1"><code class="js keyword">function</code> <code class="js plain">error( e ) {</code></div><div class="line number7 index6 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">console.log( </code><code class="js string">"Error occurred: "</code> <code class="js plain">+ e.code );</code></div><div class="line number8 index7 alt1"><code class="js plain">}</code></div><div class="line number9 index8 alt2">&nbsp;</div><div class="line number10 index9 alt1"><code class="js plain">navigator.getNetworkServices(</code><code class="js string">'upnp:urn:schemas-upnp-org:service:ContentDirectory:1'</code><code class="js plain">, showServices, error);</code></div></div></td></tr></tbody></table></div></div>
   1.906 +      </div>
   1.907 +
   1.908 +      <div class="example">
   1.909 +        <p>Example of requesting either a <acronym title="Domain Name System">DNS</acronym>-<acronym title="Service Discovery">SD</acronym> or <acronym title="Universal Plug-and-Play">UPnP</acronym> advertised service:</p>
   1.910 +        <hr>
   1.911 +        <div><div id="highlighter_284052" class="syntaxhighlighter nogutter  js"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="js keyword">function</code> <code class="js plain">showServices( services ) {</code></div><div class="line number2 index1 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js comments">// Show a list of all the services provided to the web page (+ service type)</code></div><div class="line number3 index2 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js keyword">for</code><code class="js plain">(</code><code class="js keyword">var</code> <code class="js plain">i = 0, l = services.length; i &lt; l; i++)</code></div><div class="line number4 index3 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">console.log( services[i].name + </code><code class="js string">'('</code> <code class="js plain">+ services[i].type + </code><code class="js string">')'</code> <code class="js plain">);</code></div><div class="line number5 index4 alt2"><code class="js plain">}</code></div><div class="line number6 index5 alt1">&nbsp;</div><div class="line number7 index6 alt2"><code class="js plain">navigator.getNetworkServices([</code></div><div class="line number8 index7 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js string">'zeroconf:_boxee-jsonrpc._tcp'</code><code class="js plain">,</code></div><div class="line number9 index8 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js string">'upnp:urn:schemas-upnp-org:service:ContentDirectory:1'</code></div><div class="line number10 index9 alt1"><code class="js plain">], showServices);</code></div></div></td></tr></tbody></table></div></div>
   1.912 +      </div>
   1.913 +
   1.914 +      <p>For more detailed examples see the <a href="#examples" class="sec-ref">Examples</a> section.
   1.915 +    </p></div>
   1.916 +
   1.917 +    <div id="conformance" about="#conformance" typeof="bibo:Chapter" class="section"><!--OddPage--><h2><span class="secno">2. </span>Conformance</h2><p>
   1.918 +    As well as sections marked as non-normative, all authoring guidelines, diagrams, examples,
   1.919 +    and notes in this specification are non-normative. Everything else in this specification is
   1.920 +    normative.
   1.921 +  </p>
   1.922 +  <p>
   1.923 +    The key words <em class="rfc2119" title="must">must</em>, <em class="rfc2119" title="must not">must not</em>, <em class="rfc2119" title="required">required</em>, <em class="rfc2119" title="should">should</em>, <em class="rfc2119" title="should not">should not</em>, <em class="rfc2119" title="recommended">recommended</em>, <em class="rfc2119" title="may">may</em>,
   1.924 +    and <em class="rfc2119" title="optional">optional</em> in this specification are to be interpreted as described in [<cite><a class="bibref" rel="biblioentry" href="#bib-RFC2119">RFC2119</a></cite>].
   1.925 +  </p>
   1.926 +
   1.927 +     <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
   1.928 +     meaning of the key word ("must", "should", "may", etc) used in introducing the algorithm.</p>
   1.929 +
   1.930 +     <p>
   1.931 +      Some conformance requirements are phrased as requirements on attributes, methods or objects. Such requirements are to be interpreted as requirements on user agents.
   1.932 +     </p>
   1.933 +
   1.934 +     <p>
   1.935 +      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
   1.936 +      this specification are intended to be easy to follow, and not intended to be performant.)
   1.937 +     </p>
   1.938 +
   1.939 +     <p>
   1.940 +      The only conformance class defined by this specification is a <dfn id="dfn-user-agent">user agent</dfn>.
   1.941 +     </p>
   1.942 +
   1.943 +     <p>
   1.944 +      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
   1.945 +      around platform-specific limitations.
   1.946 +     </p>
   1.947 +
   1.948 +     <p>
   1.949 +      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
   1.950 +      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
   1.951 +      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
   1.952 +      is insufficient.
   1.953 +     </p>
   1.954 +
   1.955 +      <section id="dependencies" about="#dependencies" typeof="bibo:Chapter">
   1.956 +         <h3><span class="secno">2.1 </span>Dependencies</h3>
   1.957 +
   1.958 +         This specification relies on several other underlying specifications.
   1.959 +
   1.960 +         <dl>
   1.961 +            <dt>HTML</dt>
   1.962 +            <dd>Many fundamental concepts from HTML are used by this specification. [<cite><a class="bibref" rel="biblioentry" href="#bib-HTML5">HTML5</a></cite>]</dd>
   1.963 +            <dt>WebIDL</dt>
   1.964 +            <dd>The IDL blocks in this specification use the semantics of the WebIDL specification. [<cite><a class="bibref" rel="biblioentry" href="#bib-WEBIDL">WEBIDL</a></cite>]</dd>
   1.965 +         </dl>
   1.966 +      </section>
   1.967 +    </div>
   1.968 +
   1.969 +    <div id="terminology" about="#terminology" typeof="bibo:Chapter" class="section">
   1.970 +      <!--OddPage--><h2><span class="secno">3. </span>Terminology</h2>
   1.971 +
   1.972 +      <p>
   1.973 +         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>".
   1.974 +      </p>
   1.975 +
   1.976 +      <p>
   1.977 +         The term DOM is used to refer to the <acronym title="Application Programming Interface">API</acronym> 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
   1.978 +         other <code>Node</code> objects as defined in the DOM Core specifications. [<cite><a class="bibref" rel="biblioentry" href="#bib-DOM-CORE">DOM-CORE</a></cite>]
   1.979 +      </p>
   1.980 +
   1.981 +      <p>
   1.982 +         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.
   1.983 +      </p>
   1.984 +
   1.985 +      <p>
   1.986 +        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.
   1.987 +      </p>
   1.988 +
   1.989 +      <p>
   1.990 +        A <a href="#dfn-valid-service-type" class="internalDFN">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 href="#dfn-list-of-available-service-records" class="internalDFN">list of available service records</a> according to the algorithms defined in this specification.
   1.991 +      </p>
   1.992 +    </div>
   1.993 +
   1.994 +    <div id="requesting-networked-services" about="#requesting-networked-services" typeof="bibo:Chapter" class="section">
   1.995 +     <!--OddPage--><h2><span class="secno">4. </span>Requesting networked services</h2>
   1.996 +
   1.997 +
   1.998 +<pre class="widl">[Supplemental, NoInterfaceObject]
   1.999 +interface <dfn id="navigatornetworkservice">NavigatorNetworkService</dfn> {
  1.1000 +  // Obtain a Local-networked Service
  1.1001 +  void <a href="#dom-navigator-getnetworkservices">getNetworkServices</a>( in any type,
  1.1002 +                           in <a href="#navigatornetworkservicesuccesscallback">NavigatorNetworkServiceSuccessCallback</a> successCallback,
  1.1003 +                           in optional <a href="#navigatornetworkserviceerrorcallback">NavigatorNetworkServiceErrorCallback</a> errorCallback );
  1.1004 +};
  1.1005 +<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>;
  1.1006 +
  1.1007 +[Callback=FunctionOnly, NoInterfaceObject]
  1.1008 +interface <dfn id="navigatornetworkservicesuccesscallback">NavigatorNetworkServiceSuccessCallback</dfn> {
  1.1009 +  void handleEvent( in <a href="#networkservices">NetworkServices</a> services );
  1.1010 +};
  1.1011 +
  1.1012 +[NoInterfaceObject]
  1.1013 +interface <dfn id="navigatornetworkserviceerror">NavigatorNetworkServiceError</dfn> {
  1.1014 +  const unsigned short <a href="#dom-navigatornetworkserviceerror-permission_denied">PERMISSION_DENIED_ERR</a> = 1;
  1.1015 +  const unsigned short <a href="#dom-navigatornetworkserviceerror-unknown_type_prefix">UNKNOWN_TYPE_PREFIX_ERR</a> = 2;
  1.1016 +  readonly attribute unsigned short <a href="#dom-navigatornetworkserviceerror-code">code</a>;
  1.1017 +};
  1.1018 +
  1.1019 +[Callback=FunctionOnly, NoInterfaceObject]
  1.1020 +interface <dfn id="navigatornetworkserviceerrorcallback">NavigatorNetworkServiceErrorCallback</dfn> {
  1.1021 +  void handleEvent( in <a href="#navigatornetworkserviceerror">NavigatorNetworkServiceError</a> error );
  1.1022 +};
  1.1023 +</pre>
  1.1024 +
  1.1025 +  <section id="methods" about="#methods" typeof="bibo:Chapter">
  1.1026 +   <h3><span class="secno">4.1 </span>Methods</h3>
  1.1027 +
  1.1028 +      <dl class="domintro">
  1.1029 +        <dt>
  1.1030 +          <var title="">window</var>
  1.1031 +           .
  1.1032 +          <code title="dom-navigator">
  1.1033 +            <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/timers.html#navigator">navigator</a>
  1.1034 +          </code>
  1.1035 +           .
  1.1036 +          <code title="dom-navigator-getNetworkServices">
  1.1037 +            <a href="#dom-navigator-getnetworkservices">getNetworkServices</a>
  1.1038 +          </code>
  1.1039 +          (
  1.1040 +          <var title="">type</var>
  1.1041 +          ,
  1.1042 +          <var title="">successCallback</var>
  1.1043 +           [,
  1.1044 +          <var title="">errorCallback</var>
  1.1045 +           ] )
  1.1046 +        </dt>
  1.1047 +        <dd>
  1.1048 +          <p>Prompts the user to select one or more discovered network services that have advertised support for the requested service type.</p>
  1.1049 +          <p>
  1.1050 +            The
  1.1051 +            <var title="">type</var>
  1.1052 +             argument contains one or more <a href="#dfn-valid-service-type" class="internalDFN">valid service type</a> tokens that the web page would like to interact with.
  1.1053 +          </p>
  1.1054 +          <p>
  1.1055 +            If the user accepts, the
  1.1056 +            <var title="">successCallback</var>
  1.1057 +             is
  1.1058 +          invoked, with one or more
  1.1059 +            <code>
  1.1060 +              <a href="#networkservice"><code>NetworkService</code></a>
  1.1061 +            </code>
  1.1062 +             objects as
  1.1063 +          its argument.
  1.1064 +          </p>
  1.1065 +          <p>
  1.1066 +            If the user declines, the
  1.1067 +            <var title="">errorCallback</var>
  1.1068 +             (if
  1.1069 +          any) is invoked.
  1.1070 +          </p>
  1.1071 +        </dd>
  1.1072 +      </dl>
  1.1073 +
  1.1074 +       <div>
  1.1075 +          <p>
  1.1076 +            When the <dfn id="dom-navigator-getnetworkservices" title="dom-navigator-getnetworkservices"><code>getNetworkServices(type, successCallback[, errorCallback])</code></dfn> method is called, the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> run the following steps:
  1.1077 +          </p>
  1.1078 +
  1.1079 +          <ol class="rule">
  1.1080 +            <li>
  1.1081 +               If <var>successCallback</var> is empty or is not an object of type <code>Function</code> then the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> abort these steps.
  1.1082 +            </li>
  1.1083 +
  1.1084 +            <li>
  1.1085 +              Let <var>requested control types</var> be initially set to an empty array.
  1.1086 +            </li>
  1.1087 +
  1.1088 +            <li>
  1.1089 +               If <var>type</var> is an array consisting of one or more <a href="#dfn-valid-service-type" class="internalDFN">valid service type</a> tokens, then let <var>requested control types</var> by the value of <var>type</var>, removing any non-<a href="#dfn-valid-service-type" class="internalDFN">valid service type</a> tokens from the resulting array.
  1.1090 +            </li>
  1.1091 +
  1.1092 +            <li>
  1.1093 +               If <var>type</var> is a string consisting of one <a href="#dfn-valid-service-type" class="internalDFN">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>.
  1.1094 +            </li>
  1.1095 +
  1.1096 +            <li>
  1.1097 +               If <var>requested control types</var> is an array that contains at least one or more <a title="valid service type" href="#dfn-valid-service-type" class="internalDFN">valid service type</a> tokens then continue to the step labeled <em>process</em> below. Otherwise, the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">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
  1.1098 +                 <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 2
  1.1099 +                  (<a href="#dom-navigatornetworkserviceerror-unknown_type_prefix"><code>UNKNOWN_TYPE_PREFIX_ERR</code></a>) as its argument,
  1.1100 +                   abort any remaining steps and return.
  1.1101 +            </li>
  1.1102 +
  1.1103 +            <li>
  1.1104 +               <em>Process</em>: Let <var>services found</var> be an empty array.
  1.1105 +            </li>
  1.1106 +
  1.1107 +            <li>
  1.1108 +               For each <var>available service</var> in the <a href="#dfn-list-of-available-service-records" class="internalDFN">list of available service records</a> run the following steps:
  1.1109 +               <ol class="rule">
  1.1110 +                  <li>
  1.1111 +                    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.
  1.1112 +                  </li>
  1.1113 +                  <li>
  1.1114 +                     Continue at the next <var>available service</var>.
  1.1115 +                  </li>
  1.1116 +                  <li>
  1.1117 +                     <em>Attach</em>: If <var>matched service</var> is not empty then run the following steps:
  1.1118 +
  1.1119 +                     <ol class="rule">
  1.1120 +                        <li>
  1.1121 +                           Let <var>new service object</var> be a new <a href="#networkservice"><code>NetworkService</code></a> object, mapping the parameters of
  1.1122 +                     <var>matched service</var> to this new object where possible.
  1.1123 +                        </li>
  1.1124 +                        <li>
  1.1125 +                           Append <var>new service object</var> to the <var>services found</var> array.
  1.1126 +                        </li>
  1.1127 +                     </ol>
  1.1128 +                  </li>
  1.1129 +               </ol>
  1.1130 +            </li>
  1.1131 +
  1.1132 +            <li>
  1.1133 +               If <var>services found</var> is an empty array, then the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">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
  1.1134 +                 <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 1
  1.1135 +                 (<a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a>) as its argument, abort any remaining steps and return.
  1.1136 +            </li>
  1.1137 +
  1.1138 +            <li>
  1.1139 +               Return, and run the remaining steps asynchronously.
  1.1140 +            </li>
  1.1141 +
  1.1142 +            <li>
  1.1143 +               Optionally, e.g. based on a previously-established user preference, for security reasons, or due to platform limitations, the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="may">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
  1.1144 +                 <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 1
  1.1145 +                 (<a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a>) as its argument, abort any remaining steps and return.
  1.1146 +            </li>
  1.1147 +
  1.1148 +            <li>
  1.1149 +                  The <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> prompt the user in a user-agent-specific manner for permission to provide the
  1.1150 +                  <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/browsers.html#entry-script" class="externalDFN">entry script</a>'s
  1.1151 +                  <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/origin-0.html#origin" class="externalDFN">origin</a> with an array of
  1.1152 +                  <a href="#networkservice"><code>NetworkService</code></a> objects representing the user-authorized subset of <var>services found</var>.
  1.1153 +
  1.1154 +               <p>
  1.1155 +                  If the user grants permission to access one or more networked services then the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="should">should</em> include an
  1.1156 +                  "ongoing local-network communication" indicator.
  1.1157 +               </p>
  1.1158 +
  1.1159 +               <p>If the user denies permission, then the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">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
  1.1160 +                <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 1
  1.1161 +                (<a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a>) as its argument, abort any remaining steps and return.
  1.1162 +              </p>
  1.1163 +
  1.1164 +              <p>
  1.1165 +                If the user never responds, this algorithm stalls on this step.
  1.1166 +              </p>
  1.1167 +
  1.1168 +            </li>
  1.1169 +
  1.1170 +            <li>
  1.1171 +               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.
  1.1172 +            </li>
  1.1173 +
  1.1174 +            <li>
  1.1175 +               For each Object <var>service</var> in <var>services</var>, run the following substeps:
  1.1176 +
  1.1177 +               <ol class="rule">
  1.1178 +                  <li>
  1.1179 +                     Add the <var>service</var>'s <code>url</code> parameter to the <a href="#dfn-entry-script-origin-s-url-whitelist" class="internalDFN">entry script origin's <acronym title="Uniform Resource Locator"><acronym title="Uniform Resource Locator">URL</acronym></acronym> whitelist</a>.
  1.1180 +                  </li>
  1.1181 +                  <li>
  1.1182 +                    If <var>service</var> was originally created from a <acronym title="Universal Plug-and-Play">UPnP</acronym> discovery process and the <var>service</var>'s <code>eventsUrl</code> parameter is not empty then <a href="#dfn-setup-a-upnp-events-subscription" class="internalDFN">setup a <acronym title="Universal Plug-and-Play">UPnP</acronym> Events Subscription</a> for <var>service</var>.
  1.1183 +                  </li>
  1.1184 +               </ol>
  1.1185 +            </li>
  1.1186 +
  1.1187 +            <li>
  1.1188 +               Let <var>services manager</var> be a new <a href="#networkservices"><code>NetworkServices</code></a> object.
  1.1189 +            </li>
  1.1190 +
  1.1191 +            <li>
  1.1192 +               Set <var>services manager</var>'s <code>servicesAvailable</code> attribute to the length of <var>services</var>.
  1.1193 +            </li>
  1.1194 +
  1.1195 +            <li>
  1.1196 +              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.
  1.1197 +            </li>
  1.1198 +
  1.1199 +            <li>
  1.1200 +               The <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">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
  1.1201 +               <var>services manager</var> as its argument.
  1.1202 +            </li>
  1.1203 +
  1.1204 +          </ol>
  1.1205 +
  1.1206 +          <p>
  1.1207 +            The <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#task-source" class="externalDFN">task source</a> for these
  1.1208 +            <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#concept-task" class="externalDFN">tasks</a> is the
  1.1209 +            <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>.
  1.1210 +          </p>
  1.1211 +
  1.1212 +          <p>
  1.1213 +            When a <a href="#networkservice"><code>NetworkService</code></a> object is provided to a Web page, the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> add the <code>url</code> property
  1.1214 +             to the <dfn id="dfn-entry-script-origin-s-url-whitelist">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</dfn>. This list enables the
  1.1215 +            Web page to override and initiate cross-site resource requests towards these URLs, and any sub-resources of these URLs, within the current
  1.1216 +            <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/browsers.html#entry-script" class="externalDFN">entry script</a>'s
  1.1217 +            <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,
  1.1218 +            Web Messaging, XMLHttpRequest).
  1.1219 +         </p>
  1.1220 +
  1.1221 +         <p>
  1.1222 +            If the user navigates away from the current browsing context, the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> remove all previously whitelisted urls from the <a href="#dfn-entry-script-origin-s-url-whitelist" class="internalDFN">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a>.
  1.1223 +            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:
  1.1224 +            </p><ul>
  1.1225 +              <li>If the current script is reloaded at any point in the same or different window.</li>
  1.1226 +              <li>if the current script reinvokes the <a href="#dom-navigator-getnetworkservices"><code>getNetworkServices()</code></a> method at any point in its execution.</li>
  1.1227 +              <li>If the user navigates forward or back in their history to reload the current page.</li>
  1.1228 +              <li>If a script is running in a different origin.</li>
  1.1229 +            </ul>
  1.1230 +         <p></p>
  1.1231 +
  1.1232 +      </div>
  1.1233 +      </section>
  1.1234 +
  1.1235 +      <section id="error-handling" about="#error-handling" typeof="bibo:Chapter">
  1.1236 +         <h3><span class="secno">4.2 </span>Error Handling</h3>
  1.1237 +
  1.1238 +      <dl class="domintro">
  1.1239 +        <dt>
  1.1240 +          <var title="">error</var>
  1.1241 +           .
  1.1242 +          <code title="dom-NavigatorNetworkServiceError-code">
  1.1243 +            <a href="#dom-navigatornetworkserviceerror-code">code</a>
  1.1244 +          </code>
  1.1245 +        </dt>
  1.1246 +        <dd>
  1.1247 +          <p>
  1.1248 +            Returns the current error's error code. At the current time, this may be <code>1</code> or <code>2</code>, for which the
  1.1249 +            corresponding error constants
  1.1250 +            <a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a> and
  1.1251 +            <a href="#dom-navigatornetworkserviceerror-unknown_type_prefix"><code>UNKNOWN_TYPE_PREFIX_ERR</code></a> are defined.
  1.1252 +          </p>
  1.1253 +        </dd>
  1.1254 +      </dl>
  1.1255 +
  1.1256 +         <p>
  1.1257 +            The <dfn id="dom-navigatornetworkserviceerror-code" title="dom-navigatornetworkserviceerror-code"><code>code</code></dfn> attribute of a
  1.1258 +            <a href="#navigatornetworkserviceerror"><code>NavigatorNetworkServiceError</code></a> object <em class="rfc2119" title="must">must</em> return the code for the error, which will be one of the following:
  1.1259 +         </p>
  1.1260 +
  1.1261 +         <dl>
  1.1262 +            <dt>
  1.1263 +               <dfn id="dom-navigatornetworkserviceerror-permission_denied" title="dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></dfn> (numeric value 1)
  1.1264 +            </dt>
  1.1265 +            <dd>
  1.1266 +               The user denied the page permission to access any services.
  1.1267 +            </dd>
  1.1268 +            <dt>
  1.1269 +               <dfn id="dom-navigatornetworkserviceerror-unknown_type_prefix" title="dom-navigatornetworkserviceerror-unknown_type_prefix"><code>UNKNOWN_TYPE_PREFIX_ERR</code></dfn> (numeric value 2)
  1.1270 +            </dt>
  1.1271 +            <dd>
  1.1272 +               No <a href="#dfn-valid-service-type" class="internalDFN">valid service type</a> tokens were provided in the method invocation.
  1.1273 +            </dd>
  1.1274 +         </dl>
  1.1275 +
  1.1276 +      </section>
  1.1277 +
  1.1278 +      </div>
  1.1279 +      <div id="obtaining-networked-services" about="#obtaining-networked-services" typeof="bibo:Chapter" class="section">
  1.1280 +      <!--OddPage--><h2><span class="secno">5. </span>Obtaining networked services</h2>
  1.1281 +
  1.1282 +      <p>
  1.1283 +         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.
  1.1284 +      </p>
  1.1285 +
  1.1286 +<pre class="widl">[NoInterfaceObject]
  1.1287 +interface <dfn id="networkservices">NetworkServices</dfn> {
  1.1288 +  readonly attribute unsigned long    <a href="#dom-networkservices-length">length</a>;
  1.1289 +  getter <a href="#networkservice">NetworkService</a> (unsigned long index);
  1.1290 +  <a href="#networkservice">NetworkService</a>? <a href="#dom-networkservices-getservicebyid">getServiceById</a>(DOMString id);
  1.1291 +
  1.1292 +  readonly attribute unsigned long    <a href="#dom-networkservices-servicesavailable">servicesAvailable</a>;
  1.1293 +
  1.1294 +  // event handler attributes
  1.1295 +           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>;
  1.1296 +           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>;
  1.1297 +
  1.1298 +};
  1.1299 +
  1.1300 +<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>;
  1.1301 +</pre>
  1.1302 +
  1.1303 +      <section id="attributes" about="#attributes" typeof="bibo:Chapter">
  1.1304 +      <h3><span class="secno">5.1 </span>Attributes</h3>
  1.1305 +
  1.1306 +        <dl class="domintro">
  1.1307 +          <dt>
  1.1308 +            <code title="dom-networkservices-length">
  1.1309 +              <a href="#dom-networkservices-length">length</a>
  1.1310 +            </code>
  1.1311 +          </dt>
  1.1312 +          <dd>
  1.1313 +            <p>
  1.1314 +              Returns the current number of services in the respective object's <a href="#current_authorized_services" class="internalDFN">current authorized services</a>.
  1.1315 +            </p>
  1.1316 +          </dd>
  1.1317 +          <dt>
  1.1318 +            <code title="dom-networkservices-servicesavailable">
  1.1319 +              <a href="#dom-networkservices-servicesavailable">servicesAvailable</a>
  1.1320 +            </code>
  1.1321 +          </dt>
  1.1322 +          <dd>
  1.1323 +            <p>
  1.1324 +              Returns the current number of services matching one of the app-requested <a href="#dfn-valid-service-type" class="internalDFN">valid service type</a> tokens that are actively available within the user's current network.
  1.1325 +            </p>
  1.1326 +          </dd>
  1.1327 +        </dl>
  1.1328 +
  1.1329 +        <div>
  1.1330 +           <p>
  1.1331 +              The <dfn id="dom-networkservices-length"><code>length</code></dfn> attribute <em class="rfc2119" title="must">must</em> return the number of services represented in the object's corresponding <a href="#current_authorized_services" class="internalDFN">current authorized services</a> list at the time of getting.
  1.1332 +           </p>
  1.1333 +
  1.1334 +           <p>
  1.1335 +              The <dfn id="dom-networkservices-servicesavailable"><code>servicesAvailable</code></dfn> attribute <em class="rfc2119" title="must">must</em> return the number of services available in the
  1.1336 +              user's network that match the <a href="#dfn-valid-service-type" class="internalDFN">valid service type</a> that was initially used to create the current <a href="#networkservices"><code>NetworkServices</code></a> object.
  1.1337 +              By default, <a href="#dom-networkservices-servicesavailable"><code>servicesAvailable</code></a> <em class="rfc2119" title="must">must</em> be set to <code>1</code>.
  1.1338 +           </p>
  1.1339 +
  1.1340 +           <p>
  1.1341 +             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 href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> fire a new simple
  1.1342 +             event at the <a href="#dom-networkservices-onserviceavailable"><code>onserviceavailable</code></a> event handler.
  1.1343 +           </p>
  1.1344 +
  1.1345 +           <p>
  1.1346 +             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 href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> fire a new simple
  1.1347 +             event at the <a href="#dom-networkservices-onserviceunavailable"><code>onserviceunavailable</code></a> event handler.
  1.1348 +           </p>
  1.1349 +        </div>
  1.1350 +
  1.1351 +      </section>
  1.1352 +
  1.1353 +      <section id="methods-1" about="#methods-1" typeof="bibo:Chapter">
  1.1354 +      <h3><span class="secno">5.2 </span>Methods</h3>
  1.1355 +        <dl class="domintro">
  1.1356 +        <dt>
  1.1357 +          <code title="networkservices-getter">
  1.1358 +            <a href="#networkservices">services</a>
  1.1359 +          </code>
  1.1360 +          [
  1.1361 +          <var title="">index</var>
  1.1362 +          ]
  1.1363 +        </dt>
  1.1364 +        <dd>
  1.1365 +          <p>
  1.1366 +            Returns the specified <a href="#networkservice"><code>NetworkService</code></a> object.
  1.1367 +          </p>
  1.1368 +        </dd>
  1.1369 +        <dt>
  1.1370 +          <code title="networkservices-getter">
  1.1371 +            <a href="#networkservices">services</a>
  1.1372 +          </code>
  1.1373 +          .
  1.1374 +          <code title="dom-networkservices-getservicebyid">
  1.1375 +            <a href="#dom-networkservices-getservicebyid">getServiceById</a>
  1.1376 +          </code>
  1.1377 +          (
  1.1378 +          <var title="">id</var>
  1.1379 +          )
  1.1380 +        </dt>
  1.1381 +        <dd>
  1.1382 +          <p>
  1.1383 +            Returns the <a href="#networkservice"><code>NetworkService</code></a> object with the given identifier, or null if no
  1.1384 +            service has that identifier.
  1.1385 +          </p>
  1.1386 +        </dd>
  1.1387 +      </dl>
  1.1388 +
  1.1389 +      <p>
  1.1390 +        A <a href="#networkservices"><code>NetworkServices</code></a> object represents the current list of zero or more <a href="#current_authorized_services" class="internalDFN">current authorized services</a>, of which zero or more can be available at a time. Each item in <a href="#current_authorized_services" class="internalDFN">current authorized services</a> is represented by a <a href="#networkservice"><code>NetworkService</code></a> object.
  1.1391 +      </p>
  1.1392 +
  1.1393 +      <p class="note">
  1.1394 +        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 href="#dfn-user-agent" class="internalDFN">user agent</a> dynamically adds or removes network services for any reason, then the indices of the services in <a href="#current_authorized_services" class="internalDFN">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 href="#current_authorized_services" class="internalDFN">current authorized services</a> and replaced with new services.
  1.1395 +      </p>
  1.1396 +
  1.1397 +      <p>
  1.1398 +        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 href="#current_authorized_services" class="internalDFN">current authorized services</a> represented by the respective object minus one, if any services are represented in <a href="#current_authorized_services" class="internalDFN">current authorized services</a>. If a <a href="#networkservices"><code>NetworkServices</code></a> object represents no <a href="#current_authorized_services" class="internalDFN">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>.
  1.1399 +      </p>
  1.1400 +
  1.1401 +      <p>
  1.1402 +        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 href="#current_authorized_services" class="internalDFN">current authorized services</a>, the user agent <em class="rfc2119" title="must">must</em> return the <a href="#networkservice"><code>NetworkService</code></a> object that represents the <var>index</var>th service in <a href="#current_authorized_services" class="internalDFN">current authorized services</a>.
  1.1403 +      </p>
  1.1404 +
  1.1405 +      <p>
  1.1406 +        The <dfn id="dom-networkservices-getservicebyid"><code>getServiceById(id)</code></dfn> method <em class="rfc2119" title="must">must</em> return the first <a href="#networkservice"><code>NetworkService</code></a> object in <a href="#current_authorized_services" class="internalDFN">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.
  1.1407 +        When no services in <a href="#current_authorized_services" class="internalDFN">current authorized services</a> match the given argument, the method <em class="rfc2119" title="must">must</em> return null.
  1.1408 +      </p>
  1.1409 +
  1.1410 +      <p>
  1.1411 +         Services available within the local network can connect and disconnect at different times during the execution of a web page. A <a href="#dfn-user-agent" class="internalDFN">user agent</a> can
  1.1412 +         inform a web page when the state of networked services matching the requested <a href="#dfn-valid-service-type" class="internalDFN">valid service type</a> change. Web pages can use this information to enable in-page experiences for communicating the state of networked services
  1.1413 +         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.
  1.1414 +      </p>
  1.1415 +
  1.1416 +      </section>
  1.1417 +
  1.1418 +      <section id="events" about="#events" typeof="bibo:Chapter">
  1.1419 +      <h3><span class="secno">5.3 </span>Events</h3>
  1.1420 +
  1.1421 +      <p>
  1.1422 +         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:
  1.1423 +       </p>
  1.1424 +
  1.1425 +       <table border="1">
  1.1426 +        <thead>
  1.1427 +          <tr>
  1.1428 +            <th>
  1.1429 +              <span title="event handlers">Event handler</span>
  1.1430 +            </th>
  1.1431 +            <th>
  1.1432 +              <span>Event handler event type</span>
  1.1433 +            </th>
  1.1434 +          </tr>
  1.1435 +        </thead>
  1.1436 +        <tbody>
  1.1437 +          <tr>
  1.1438 +            <td>
  1.1439 +              <dfn id="dom-networkservices-onserviceavailable" title="dom-NetworkServices-onserviceavailable">
  1.1440 +                <code>onserviceavailable</code>
  1.1441 +              </dfn>
  1.1442 +            </td>
  1.1443 +            <td>
  1.1444 +              <code title="event-serviceavailable">serviceavailable</code>
  1.1445 +            </td>
  1.1446 +          </tr>
  1.1447 +          <tr>
  1.1448 +            <td>
  1.1449 +              <dfn id="dom-networkservices-onserviceunavailable" title="dom-NetworkServices-onserviceunavailable">
  1.1450 +                <code>onserviceunavailable</code>
  1.1451 +              </dfn>
  1.1452 +            </td>
  1.1453 +            <td>
  1.1454 +              <code title="event-serviceunavailable">serviceunavailable</code>
  1.1455 +            </td>
  1.1456 +          </tr>
  1.1457 +        </tbody>
  1.1458 +      </table>
  1.1459 +
  1.1460 +      <p>
  1.1461 +         Events with an event type of <code>serviceavailable</code> or <code>serviceunavailable</code> defined in this specification are simple <code>Event</code> objects.
  1.1462 +      </p>
  1.1463 +
  1.1464 +      </section>
  1.1465 +
  1.1466 +    </div>
  1.1467 +    <div id="communicating-with-a-networked-service" about="#communicating-with-a-networked-service" typeof="bibo:Chapter" class="section">
  1.1468 +    <!--OddPage--><h2><span class="secno">6. </span>Communicating with a networked service</h2>
  1.1469 +
  1.1470 +<p>
  1.1471 +   The <a href="#networkservice"><code>NetworkService</code></a> interface is used to provide a set of connection information for an <acronym title="Hypertext Transfer Protocol">HTTP</acronym> service endpoint and if available, service events, running on a networked device.
  1.1472 +</p>
  1.1473 +
  1.1474 +<pre class="widl">[NoInterfaceObject]
  1.1475 +interface <dfn id="networkservice">NetworkService</dfn> {
  1.1476 +  readonly attribute DOMString        <a href="#dom-networkservice-id">id</a>;
  1.1477 +  readonly attribute DOMString        <a href="#dom-networkservice-name">name</a>;
  1.1478 +  readonly attribute DOMString        <a href="#dom-networkservice-type">type</a>;
  1.1479 +  readonly attribute DOMString        <a href="#dom-networkservice-url">url</a>;
  1.1480 +  readonly attribute DOMString        <a href="#dom-networkservice-config">config</a>;
  1.1481 +
  1.1482 +  const unsigned short <a href="#dom-networkservice-AVAILABLE">AVAILABLE</a>      = 1;
  1.1483 +  const unsigned short <a href="#dom-networkservice-UNAVAILABLE">UNAVAILABLE</a>    = 2;
  1.1484 +  readonly attribute unsigned short   <a href="#dom-networkservice-readystate">readyState</a>;
  1.1485 +
  1.1486 +  // event handler attributes
  1.1487 +           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>;
  1.1488 +           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>;
  1.1489 +};
  1.1490 +
  1.1491 +<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>;
  1.1492 +</pre>
  1.1493 +
  1.1494 +<section id="attributes-1" about="#attributes-1" typeof="bibo:Chapter">
  1.1495 +  <h3><span class="secno">6.1 </span>Attributes</h3>
  1.1496 +
  1.1497 +      <dl class="domintro">
  1.1498 +        <dt>
  1.1499 +          <var title="">service</var>
  1.1500 +           .
  1.1501 +          <code title="dom-networkservice-id">
  1.1502 +            <a href="#dom-networkservice-id">id</a>
  1.1503 +          </code>
  1.1504 +        </dt>
  1.1505 +        <dd>
  1.1506 +          <p>
  1.1507 +            A unique identifier for the given user-selected service instance.
  1.1508 +          </p>
  1.1509 +        </dd>
  1.1510 +        <dt>
  1.1511 +          <var title="">service</var>
  1.1512 +           .
  1.1513 +          <code title="dom-networkservice-name">
  1.1514 +            <a href="#dom-networkservice-name">name</a>
  1.1515 +          </code>
  1.1516 +        </dt>
  1.1517 +        <dd>
  1.1518 +          <p>
  1.1519 +            The name of the user-selected service.
  1.1520 +          </p>
  1.1521 +        </dd>
  1.1522 +        <dt>
  1.1523 +          <var title="">service</var>
  1.1524 +           .
  1.1525 +          <code title="dom-networkservice-type">
  1.1526 +            <a href="#dom-networkservice-type">type</a>
  1.1527 +          </code>
  1.1528 +        </dt>
  1.1529 +        <dd>
  1.1530 +          <p>
  1.1531 +            The <a href="#dfn-valid-service-type" class="internalDFN">valid service type</a> token value of the user-selected service.
  1.1532 +          </p>
  1.1533 +        </dd>
  1.1534 +        <dt>
  1.1535 +          <var title="">service</var>
  1.1536 +           .
  1.1537 +          <code title="dom-networkservice-url">
  1.1538 +            <a href="#dom-networkservice-url">url</a>
  1.1539 +          </code>
  1.1540 +        </dt>
  1.1541 +        <dd>
  1.1542 +          <p>
  1.1543 +            The control <acronym title="Uniform Resource Locator">URL</acronym> endpoint (including any required port information) of the user-selected control service that has been added to the <a href="#dfn-entry-script-origin-s-url-whitelist" class="internalDFN">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a>.
  1.1544 +          </p>
  1.1545 +        </dd>
  1.1546 +        <dt>
  1.1547 +          <var title="">service</var>
  1.1548 +           .
  1.1549 +          <code title="dom-networkservice-config">
  1.1550 +            <a href="#dom-networkservice-config">config</a>
  1.1551 +          </code>
  1.1552 +        </dt>
  1.1553 +        <dd>
  1.1554 +          <p>
  1.1555 +            The configuration information associated with the service depending on the requested service type.
  1.1556 +          </p>
  1.1557 +        </dd>
  1.1558 +      </dl>
  1.1559 +
  1.1560 +          <p>
  1.1561 +            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 class="rfc2119" title="must">must</em> have the same <a href="#dom-networkservice-id"><code>id</code></a> value.
  1.1562 +         </p>
  1.1563 +
  1.1564 +         <p>
  1.1565 +            The <dfn id="dom-networkservice-name"><code>name</code></dfn> attribute represents a human-readable title for the service.
  1.1566 +         </p>
  1.1567 +
  1.1568 +         <p>
  1.1569 +             The <dfn id="dom-networkservice-type"><code>type</code></dfn> attribute reflects the value of the <a href="#dfn-valid-service-type" class="internalDFN">valid service type</a> of the service.
  1.1570 +          </p>
  1.1571 +
  1.1572 +         <p>
  1.1573 +            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 <acronym title="Uniform Resource Locator">URL</acronym></a> pointing to the root <acronym title="Hypertext Transfer Protocol">HTTP</acronym>
  1.1574 +            endpoint for the service that has been added to the <a href="#dfn-entry-script-origin-s-url-whitelist" class="internalDFN">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> 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).
  1.1575 +         </p>
  1.1576 +
  1.1577 +         <p>
  1.1578 +            The <dfn id="dom-networkservice-config"><code>config</code></dfn> attribute provides the raw configuration information extracted from the given network service.
  1.1579 +         </p>
  1.1580 +
  1.1581 +      </section>
  1.1582 +
  1.1583 +      <section id="states" about="#states" typeof="bibo:Chapter">
  1.1584 +         <h3><span class="secno">6.2 </span>States</h3>
  1.1585 +
  1.1586 +      <dl class="domintro">
  1.1587 +        <dt>
  1.1588 +          <var title="">service</var>
  1.1589 +           .
  1.1590 +          <code title="dom-networkservice-readystate">
  1.1591 +            <a href="#dom-networkservice-readystate">readyState</a>
  1.1592 +          </code>
  1.1593 +        </dt>
  1.1594 +        <dd>
  1.1595 +          <p>
  1.1596 +            Returns the current state.
  1.1597 +          </p>
  1.1598 +        </dd>
  1.1599 +      </dl>
  1.1600 +
  1.1601 +         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 class="rfc2119" title="must">must</em> return the current state of the networked service,
  1.1602 +         which <em class="rfc2119" title="must">must</em> be one of the following values:
  1.1603 +
  1.1604 +         <dl>
  1.1605 +           <dt>
  1.1606 +             <dfn id="dom-networkservice-AVAILABLE" title="dom-networkservice-AVAILABLE">
  1.1607 +               <code>AVAILABLE</code>
  1.1608 +             </dfn>
  1.1609 +              (numeric value
  1.1610 +             1)
  1.1611 +
  1.1612 +
  1.1613 +           </dt>
  1.1614 +           <dd>
  1.1615 +             <p>The object is connected to its service endpoint.
  1.1616 +
  1.1617 +            </p>
  1.1618 +           </dd>
  1.1619 +           <dt>
  1.1620 +             <dfn id="dom-networkservice-UNAVAILABLE" title="dom-networkservice-UNAVAILABLE">
  1.1621 +               <code>UNAVAILABLE</code>
  1.1622 +             </dfn>
  1.1623 +              (numeric value
  1.1624 +             2)
  1.1625 +           </dt>
  1.1626 +           <dd>
  1.1627 +             <p>The object is not connected to its service endpoint.
  1.1628 +            </p>
  1.1629 +           </dd>
  1.1630 +         </dl>
  1.1631 +
  1.1632 +      </section>
  1.1633 +
  1.1634 +      <section id="events-1" about="#events-1" typeof="bibo:Chapter">
  1.1635 +         <h3><span class="secno">6.3 </span>Events</h3>
  1.1636 +
  1.1637 +      <p>
  1.1638 +         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
  1.1639 +         <a href="#networkservice"><code>NetworkService</code></a> interface:
  1.1640 +       </p>
  1.1641 +
  1.1642 +       <table border="1">
  1.1643 +        <thead>
  1.1644 +          <tr>
  1.1645 +            <th>
  1.1646 +              <span title="event handlers">Event handler</span>
  1.1647 +            </th>
  1.1648 +            <th>
  1.1649 +              <span>Event handler event type</span>
  1.1650 +            </th>
  1.1651 +          </tr>
  1.1652 +        </thead>
  1.1653 +        <tbody>
  1.1654 +          <tr>
  1.1655 +            <td>
  1.1656 +              <dfn id="dom-networkservice-onmessage" title="dom-NetworkService-onmessage">
  1.1657 +                <code>onmessage</code>
  1.1658 +              </dfn>
  1.1659 +            </td>
  1.1660 +            <td>
  1.1661 +              <code title="event-message">message</code>
  1.1662 +            </td>
  1.1663 +          </tr>
  1.1664 +          <tr>
  1.1665 +            <td>
  1.1666 +              <dfn id="dom-networkservice-onreadystatechange" title="dom-NetworkService-onreadystatechange">
  1.1667 +                <code>onreadystatechange</code>
  1.1668 +              </dfn>
  1.1669 +            </td>
  1.1670 +            <td>
  1.1671 +              <code title="event-onreadystatechange">readystatechange</code>
  1.1672 +            </td>
  1.1673 +          </tr>
  1.1674 +        </tbody>
  1.1675 +      </table>
  1.1676 +
  1.1677 +      <p>
  1.1678 +         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 class="bibref" rel="biblioentry" href="#bib-WEBMESSAGING">WEBMESSAGING</a></cite>].
  1.1679 +      </p>
  1.1680 +
  1.1681 +      <p>
  1.1682 +         Events with an event type of <code>readystatechange</code> defined in this specification are simple <code>Event</code> objects.
  1.1683 +      </p>
  1.1684 +
  1.1685 +      </section>
  1.1686 +   </div>
  1.1687 +
  1.1688 +      <div id="service-discovery" about="#service-discovery" typeof="bibo:Chapter" class="section">
  1.1689 +            <!--OddPage--><h2><span class="secno">7. </span>Service Discovery</h2>
  1.1690 +
  1.1691 +      <p>
  1.1692 +         A <a href="#dfn-user-agent" class="internalDFN">user agent</a> conforming to this specification <em class="rfc2119" title="may">may</em> implement <acronym title="Simple Service Discovery Protocol"><acronym title="Simple Service Discovery Protocol">SSDP</acronym></acronym> [<cite><a class="bibref" rel="biblioentry" href="#bib-UPNP">UPNP</a></cite>] and Zeroconf [<cite><a class="bibref" rel="biblioentry" href="#bib-ZEROCONF">ZEROCONF</a></cite>] service discovery mechanisms
  1.1693 +         to enable Web pages to request and connect with <acronym title="Hypertext Transfer Protocol">HTTP</acronym> services running on networked devices, discovered via either mechanism, through this <acronym title="Application Programming Interface">API</acronym>. When a <a href="#dfn-user-agent" class="internalDFN">user agent</a> implements either of these service discovery mechanisms, then it <em class="rfc2119" title="must">must</em> conform to the corresponding algorithms provided in this section of the specification.
  1.1694 +      </p>
  1.1695 +      <p>
  1.1696 +         This section presents how the results of these two service discovery
  1.1697 +         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.
  1.1698 +      </p>
  1.1699 +
  1.1700 +      <p>
  1.1701 +         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
  1.1702 +         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
  1.1703 +         invocation of this <acronym title="Application Programming Interface">API</acronym> from a Web page).
  1.1704 +      </p>
  1.1705 +
  1.1706 +      <p>
  1.1707 +         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.
  1.1708 +         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
  1.1709 +         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>.
  1.1710 +      </p>
  1.1711 +
  1.1712 +            <section id="zeroconf--mdns---dns-sd" about="#zeroconf--mdns---dns-sd" typeof="bibo:Chapter">
  1.1713 +         <h3><span class="secno">7.1 </span>Zeroconf (<acronym title="Multicast DNS"><acronym title="Multicast DNS">mDNS</acronym></acronym> + <acronym title="Domain Name System"><acronym title="Domain Name System">DNS</acronym></acronym>-<acronym title="Service Discovery"><acronym title="Service Discovery">SD</acronym></acronym>)</h3>
  1.1714 +
  1.1715 +         <p>
  1.1716 +            For each <acronym title="Domain Name System">DNS</acronym> response received from a user-agent-initiated Multicast <acronym title="Domain Name System">DNS</acronym> Browse for <acronym title="DNS Pointer Record"><acronym title="DNS Pointer Record">PTR</acronym></acronym> records with the name <code>_services._dns-sd._udp</code> on the resolved recommended automatic browsing
  1.1717 +   domain [<cite><a class="bibref" rel="biblioentry" href="#bib-MDNS">MDNS</a></cite>], the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> run the following steps:
  1.1718 +         </p>
  1.1719 +
  1.1720 +         <ol class="rule">
  1.1721 +
  1.1722 +            <li>Let <var>service <acronym title="Multicast DNS">mDNS</acronym> responses</var> be an array of <acronym title="DNS Pointer Record">PTR</acronym> records received by issuing a Multicast <acronym title="Domain Name System">DNS</acronym> Browse for <acronym title="DNS Pointer Record">PTR</acronym> records with the name of the current discovered service type.</li>
  1.1723 +
  1.1724 +            <li>For each Object <var>service <acronym title="Multicast DNS">mDNS</acronym> response</var> in <var>service <acronym title="Multicast DNS">mDNS</acronym> responses</var>, run the following steps:
  1.1725 +               <ol>
  1.1726 +
  1.1727 +                  <li>
  1.1728 +                     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>.
  1.1729 +                  </li>
  1.1730 +
  1.1731 +                  <li>
  1.1732 +                     Set <var>network service record</var>'s <code>id</code> property to the value of the full <acronym title="DNS Pointer Record">PTR</acronym> Service Instance Name [<cite><a class="bibref" rel="biblioentry" href="#bib-MDNS">MDNS</a></cite>].
  1.1733 +                  </li>
  1.1734 +
  1.1735 +                  <li>
  1.1736 +                     Set <var>network service record</var>'s <code>name</code> property to the value of the <acronym title="DNS Pointer Record">PTR</acronym> Service Instance Name's <var>Instance</var> component [<cite><a class="bibref" rel="biblioentry" href="#bib-MDNS">MDNS</a></cite>].
  1.1737 +                  </li>
  1.1738 +
  1.1739 +                  <li>
  1.1740 +                     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 <acronym title="DNS Pointer Record">PTR</acronym> Service Instance Name's <var>Service</var> component [<cite><a class="bibref" rel="biblioentry" href="#bib-MDNS">MDNS</a></cite>].
  1.1741 +                  </li>
  1.1742 +
  1.1743 +                  <li>
  1.1744 +                     Set <var>network service record</var>'s <code>url</code> property to the resolvable Service <acronym title="Uniform Resource Locator">URL</acronym> obtained from performing an <acronym title="Domain Name System">DNS</acronym>-<acronym title="Service Discovery">SD</acronym> Lookup [<cite><a class="bibref" rel="biblioentry" href="#bib-DNS-SD">DNS-SD</a></cite>] of the current service from the <acronym title="DNS Pointer Record">PTR</acronym> record provided [<cite><a class="bibref" rel="biblioentry" href="#bib-MDNS">MDNS</a></cite>].
  1.1745 +                  </li>
  1.1746 +
  1.1747 +                  <li>
  1.1748 +                     Set <var>network service record</var>'s <code>config</code> property to the string value of the contents of the first <acronym title="Domain Name System">DNS</acronym>-<acronym title="Service Discovery">SD</acronym> TXT record associated with the <var>service <acronym title="Multicast DNS">mDNS</acronym> response</var> as defined in [<cite><a class="bibref" rel="biblioentry" href="#bib-DNS-SD">DNS-SD</a></cite>].
  1.1749 +                  </li>
  1.1750 +
  1.1751 +                  <li>
  1.1752 +                     For each Object <var>existing service record</var> in the current <a href="#dfn-list-of-available-service-records" class="internalDFN">list of available service records</a>, run the following sub-steps:
  1.1753 +                     <ol class="rule">
  1.1754 +
  1.1755 +                       <li>
  1.1756 +                        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
  1.1757 +                        value of <var>existing service record</var> in the current <a href="#dfn-list-of-available-service-records" class="internalDFN">list of available service records</a>  to the value of the
  1.1758 +                        <var>network service record</var> and skip the next step.
  1.1759 +                       </li>
  1.1760 +                     </ol>
  1.1761 +                  </li>
  1.1762 +
  1.1763 +                  <li>
  1.1764 +                     Add <var>network service record</var> to the <a href="#dfn-list-of-available-service-records" class="internalDFN">list of available service records</a>.
  1.1765 +                  </li>
  1.1766 +
  1.1767 +                  <li>
  1.1768 +                     For each non-garbage collected <a href="#networkservice"><code>NetworkService</code></a> object run the following steps:
  1.1769 +
  1.1770 +                     <ol class="rule">
  1.1771 +                        <li>
  1.1772 +                           If the <a href="#networkservice"><code>NetworkService</code></a> object's <code>type</code> attribute does not equal the
  1.1773 +                           current <a>network service record</a>'s <code>type</code> property then continue at the next available active
  1.1774 +                           <a href="#networkservice"><code>NetworkService</code></a> object.
  1.1775 +                        </li>
  1.1776 +                        <li>
  1.1777 +                           Increment the <code>servicesAvailable</code> attribute of the <a href="#networkservices"><code>NetworkServices</code></a> object by <code>1</code>.
  1.1778 +                        </li>
  1.1779 +                     </ol>
  1.1780 +                  </li>
  1.1781 +            </ol>
  1.1782 +           </li>
  1.1783 +         </ol>
  1.1784 +
  1.1785 +      </section>
  1.1786 +
  1.1787 +      <section id="universal-plug-and-play--upnp" about="#universal-plug-and-play--upnp" typeof="bibo:Chapter">
  1.1788 +         <h3><span class="secno">7.2 </span>Universal Plug-and-Play (<acronym title="Universal Plug-and-Play"><acronym title="Universal Plug-and-Play">UPnP</acronym></acronym>)</h3>
  1.1789 +
  1.1790 +         <p>
  1.1791 +            For each <acronym title="Simple Service Discovery Protocol">SSDP</acronym> Presence Announcement [<cite><a class="bibref" rel="biblioentry" href="#bib-UPNP">UPNP</a></cite>] - a <acronym title="Hypertext Transfer Protocol">HTTP</acronym> NOTIFY request - received from a user-agent-initiated <acronym title="Simple Service Discovery Protocol">SSDP</acronym> Discovery Request [<cite><a class="bibref" rel="biblioentry" href="#bib-UPNP">UPNP</a></cite>], the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> run the following steps:
  1.1792 +         </p>
  1.1793 +
  1.1794 +         <ol class="rule">
  1.1795 +            <li>
  1.1796 +               Let <var>ssdp device</var> be an Object with a property for each <acronym title="Hypertext Transfer Protocol">HTTP</acronym> header received in the received <acronym title="Simple Service Discovery Protocol">SSDP</acronym> Presence Announcement, with each key being the name of a <acronym title="Hypertext Transfer Protocol">HTTP</acronym> header and its
  1.1797 +               value being that <acronym title="Hypertext Transfer Protocol">HTTP</acronym> header's accompanying value.
  1.1798 +            </li>
  1.1799 +
  1.1800 +            <li>
  1.1801 +               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 href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> abort these steps.
  1.1802 +            </li>
  1.1803 +
  1.1804 +            <li>
  1.1805 +               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.
  1.1806 +            </li>
  1.1807 +
  1.1808 +            <li>
  1.1809 +               Let <var>root device descriptor file</var> contain the contents of the file located at the <acronym title="Uniform Resource Locator">URL</acronym> provided in the first occurrence of <var>Location</var> obtained according to the rules
  1.1810 +               defined in the section 'Retrieving a description using <acronym title="Hypertext Transfer Protocol">HTTP</acronym>' [<cite><a class="bibref" rel="biblioentry" href="#bib-UPNP">UPNP</a></cite>].
  1.1811 +            </li>
  1.1812 +
  1.1813 +            <li>
  1.1814 +               If <var>root device descriptor file</var> is empty, then the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> abort these steps.
  1.1815 +            </li>
  1.1816 +
  1.1817 +            <li>
  1.1818 +               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
  1.1819 +               the section 'Device Description' [<cite><a class="bibref" rel="biblioentry" href="#bib-UPNP">UPNP</a></cite>].
  1.1820 +            </li>
  1.1821 +
  1.1822 +            <li>
  1.1823 +               For each Object <var>advertised service</var> in <var>advertised services</var> run the following steps:
  1.1824 +               <ol class="rule">
  1.1825 +
  1.1826 +                  <li>
  1.1827 +                     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>.
  1.1828 +                  </li>
  1.1829 +
  1.1830 +                  <li>
  1.1831 +                     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.
  1.1832 +                  </li>
  1.1833 +
  1.1834 +                  <li>
  1.1835 +                     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.
  1.1836 +                  </li>
  1.1837 +
  1.1838 +                  <li>
  1.1839 +                     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.
  1.1840 +                  </li>
  1.1841 +
  1.1842 +                  <li>
  1.1843 +                     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.
  1.1844 +                  </li>
  1.1845 +
  1.1846 +                  <li>
  1.1847 +                     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.
  1.1848 +                  </li>
  1.1849 +
  1.1850 +                  <li>
  1.1851 +                     If <var>service</var>'s <code>eventSubURL</code> property is empty, then continue to the step labeled <em>register</em> below.
  1.1852 +                  </li>
  1.1853 +
  1.1854 +                  <li>
  1.1855 +                     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.
  1.1856 +                  </li>
  1.1857 +
  1.1858 +                  <li>
  1.1859 +                     <em>Register</em>: For each Object <var>existing service record</var> in the current <a href="#dfn-list-of-available-service-records" class="internalDFN">list of available service records</a>, run the following sub-steps:
  1.1860 +                     <ol class="rule">
  1.1861 +
  1.1862 +                       <li>
  1.1863 +                        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
  1.1864 +                        <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
  1.1865 +                        value of <var>existing service record</var> in the current <a href="#dfn-list-of-available-service-records" class="internalDFN">list of available service records</a>  to the value of the
  1.1866 +                        <var>network service record</var> and skip the next step.
  1.1867 +                       </li>
  1.1868 +                     </ol>
  1.1869 +                  </li>
  1.1870 +
  1.1871 +                  <li>
  1.1872 +                     Add <var>network service record</var> to the <a href="#dfn-list-of-available-service-records" class="internalDFN">list of available service records</a>.
  1.1873 +                  </li>
  1.1874 +
  1.1875 +               </ol>
  1.1876 +            </li>
  1.1877 +            <li>
  1.1878 +               <em>Update Service Monitor</em>: For each non-garbage collected <a href="#networkservice"><code>NetworkService</code></a> object run the following steps:
  1.1879 +
  1.1880 +               <ol class="rule">
  1.1881 +                  <li>
  1.1882 +                     If this <a href="#networkservice"><code>NetworkService</code></a> object's <code>type</code> attribute does not equal the
  1.1883 +                     current <a>network service record</a>'s <code>type</code> property then continue at the next available active
  1.1884 +                     <a href="#networkservice"><code>NetworkService</code></a> object.
  1.1885 +                  </li>
  1.1886 +                  <li>
  1.1887 +                     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>
  1.1888 +                     object by <code>1</code>. Otherwise, decrement the <code>servicesAvailable</code> attribute of the <a href="#networkservices"><code>NetworkServices</code></a>
  1.1889 +                     object by <code>1</code>.
  1.1890 +                  </li>
  1.1891 +               </ol>
  1.1892 +            </li>
  1.1893 +         </ol>
  1.1894 +
  1.1895 +         <p>
  1.1896 +            A <dfn id="dfn-user-agent-generated-callback-url">user-agent generated callback url</dfn> is a Local-network accessible <acronym title="Uniform Resource Locator">URL</acronym> endpoint that a <a href="#dfn-user-agent" class="internalDFN">user agent</a> must generate and maintain for receiving <acronym title="Hypertext Transfer Protocol">HTTP</acronym> NOTIFY requests from <acronym title="Universal Plug-and-Play">UPnP</acronym> Event sources.
  1.1897 +         </p>
  1.1898 +
  1.1899 +         <p>When the <a href="#dfn-user-agent" class="internalDFN">user agent</a> is to <dfn id="dfn-setup-a-upnp-events-subscription">setup a <acronym title="Universal Plug-and-Play">UPnP</acronym> Events Subscription</dfn>, it is to run the following steps with the current <var>network service record</var> object:</p>
  1.1900 +
  1.1901 +         <ol class="rule">
  1.1902 +            <li>
  1.1903 +               If <var>network service record</var>'s <code>eventsUrl</code> property is empty then the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> abort these steps.
  1.1904 +            </li>
  1.1905 +
  1.1906 +            <li>
  1.1907 +               Let <var>callback <acronym title="Uniform Resource Locator">URL</acronym></var> be the value of creating a new <a href="#dfn-user-agent-generated-callback-url" class="internalDFN">user-agent generated callback url</a>.
  1.1908 +            </li>
  1.1909 +
  1.1910 +            <li>
  1.1911 +               Send a <acronym title="Hypertext Transfer Protocol">HTTP</acronym> 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
  1.1912 +               <code>86400</code> and a <em>CALLBACK</em> header
  1.1913 +               with a string value of <var>callback <acronym title="Uniform Resource Locator">URL</acronym></var> towards the <var>network service record</var>'s <code>eventsUrl</code> property.
  1.1914 +            </li>
  1.1915 +
  1.1916 +            <li>
  1.1917 +               If a non-200 OK response is received from the <acronym title="Hypertext Transfer Protocol">HTTP</acronym> SUBSCRIBE request then the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> abort these steps.
  1.1918 +            </li>
  1.1919 +
  1.1920 +            <li>
  1.1921 +               On receiving a valid 200 OK response, run the following steps:
  1.1922 +
  1.1923 +               <ol class="rule">
  1.1924 +                  <li>
  1.1925 +                     Let <var>callback ID</var> equal the string value of the first included <em>SID</em> header, if it exists.
  1.1926 +                  </li>
  1.1927 +                  <li>
  1.1928 +                     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.
  1.1929 +                  </li>
  1.1930 +                  <li>
  1.1931 +                     Run the following steps aynchronously and continue to the step labeled <em>listen</em> below.
  1.1932 +                  </li>
  1.1933 +                  <li>
  1.1934 +                     <em>Refresh Subscription</em>: Run the following steps at a set interval (X) within the <a href="#dfn-user-agent" class="internalDFN">user agent</a>:
  1.1935 +
  1.1936 +                     <ol class="rule">
  1.1937 +                        <li>
  1.1938 +                           Let <var>current date</var> equal the current UTC date.
  1.1939 +                        </li>
  1.1940 +                        <li>
  1.1941 +                           If <var>current date</var> is less than the <var>timeout date</var> then continue to the step labeled <em>refresh subscription</em> above.
  1.1942 +                        </li>
  1.1943 +                        <li>
  1.1944 +                           Send a <acronym title="Hypertext Transfer Protocol">HTTP</acronym> SUBSCRIBE request with a <em>SID</em> header with the string value of <var>callback ID</var> and a <em>TIMEOUT</em> header
  1.1945 +                           with an integer value of <code>86400</code> towards the <var>network service record</var>'s <code>eventsUrl</code> property.
  1.1946 +                        </li>
  1.1947 +                        <li>
  1.1948 +                           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 <acronym title="Hypertext Transfer Protocol">HTTP</acronym>
  1.1949 +                           responses should cause the <a href="#dfn-user-agent" class="internalDFN">user agent</a> to continue from the step labeled <em>refresh subscription</em> above.
  1.1950 +                        </li>
  1.1951 +                     </ol>
  1.1952 +
  1.1953 +                  </li>
  1.1954 +
  1.1955 +                  <li>
  1.1956 +                     <em>Listen</em>: For each <acronym title="Hypertext Transfer Protocol">HTTP</acronym> NOTIFY request received at the <var>callback <acronym title="Uniform Resource Locator">URL</acronym></var> the <a href="#dfn-user-agent" class="internalDFN">user agent</a> is to run the following steps:
  1.1957 +
  1.1958 +                     <ol class="rule">
  1.1959 +                        <li>
  1.1960 +                           Let <var>content clone</var> be the result of obtaining the message body of the <acronym title="Hypertext Transfer Protocol">HTTP</acronym> NOTIFY request. If <var>content clone</var> is empty, then the <a href="#dfn-user-agent" class="internalDFN">user agent</a> <em class="rfc2119" title="must">must</em> abort these steps.
  1.1961 +                        </li>
  1.1962 +                        <li>
  1.1963 +                          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 class="bibref" rel="biblioentry" href="#bib-WEBMESSAGING">WEBMESSAGING</a></cite>], with the name <code>message</code>,
  1.1964 +                           which does not bubble, is not cancelable, and has no default action.
  1.1965 +                        </li>
  1.1966 +                        <li>
  1.1967 +                           Let the <code>data</code> attribute of the event have the DOMString value of <var>content clone</var>.
  1.1968 +                        </li>
  1.1969 +                        <li>
  1.1970 +                           <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task" class="externalDFN">Queue a task</a> to
  1.1971 +                            dispatch the newly created event at the current <a href="#networkservice" class="internalDFN"><code>NetworkService</code></a> object.
  1.1972 +                        </li>
  1.1973 +                     </ol>
  1.1974 +                  </li>
  1.1975 +
  1.1976 +               </ol>
  1.1977 +
  1.1978 +            </li>
  1.1979 +         </ol>
  1.1980 +
  1.1981 +         </section>
  1.1982 +
  1.1983 +         <section id="network-topology-monitoring" about="#network-topology-monitoring" typeof="bibo:Chapter">
  1.1984 +            <h3><span class="secno">7.3 </span>Network Topology Monitoring</h3>
  1.1985 +
  1.1986 +                  <div>
  1.1987 +                     <p>
  1.1988 +                        When the <a href="#dfn-user-agent" class="internalDFN">user agent</a> detects that the user has dropped from their connected network, then it <em class="rfc2119" title="must">must</em> run the following steps:
  1.1989 +                     </p>
  1.1990 +
  1.1991 +                     <ol class="rule">
  1.1992 +                        <li>
  1.1993 +                           Flush all entries from the <a href="#dfn-list-of-available-service-records" class="internalDFN">list of available service records</a>.
  1.1994 +                        </li>
  1.1995 +                        <li>
  1.1996 +                           For each <a href="#networkservice"><code>NetworkService</code></a> object currently active in the <a href="#dfn-user-agent" class="internalDFN">user agent</a> perform the following steps:
  1.1997 +
  1.1998 +                           <ol class="rule">
  1.1999 +                              <li>
  1.2000 +                                 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>).
  1.2001 +                              </li>
  1.2002 +                              <li>
  1.2003 +                                 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.
  1.2004 +                              </li>
  1.2005 +                              <li>
  1.2006 +                                 <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/webappapis.html#queue-a-task" class="externalDFN">Queue a task</a> to
  1.2007 +                                        dispatch the newly created event at the <a href="#networkservice"><code>NetworkService</code></a> object.
  1.2008 +                              </li>
  1.2009 +                           </ol>
  1.2010 +                        </li>
  1.2011 +                     </ol>
  1.2012 +
  1.2013 +                     <p>
  1.2014 +                        When the <a href="#dfn-user-agent" class="internalDFN">user agent</a> detects that the user has connected to a new network, then it <em class="rfc2119" title="should">should</em> run the following steps:
  1.2015 +                     </p>
  1.2016 +
  1.2017 +                     <ol class="rule">
  1.2018 +                        <li>
  1.2019 +                           Re-issue an <acronym title="Multicast DNS">mDNS</acronym> search and <acronym title="Simple Service Discovery Protocol">SSDP</acronym> discovery search and handle the responses according to the processing defined in <a href="#service-discovery" class="sec-ref">Section 6: Service Discovery</a>.
  1.2020 +                        </li>
  1.2021 +                     </ol>
  1.2022 +                  </div>
  1.2023 +         </section>
  1.2024 +      </div>
  1.2025 +
  1.2026 +   <div id="garbage-collection" about="#garbage-collection" typeof="bibo:Chapter" class="section">
  1.2027 +      <!--OddPage--><h2><span class="secno">8. </span>Garbage collection</h2>
  1.2028 +
  1.2029 +      <p>
  1.2030 +         A <a href="#networkservice" class="internalDFN"><code>NetworkService</code></a> object containing a <code>url</code> parameter currently in the <a href="#dfn-entry-script-origin-s-url-whitelist" class="internalDFN">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a> <em class="rfc2119" title="must not">must not</em> be garbage collected.
  1.2031 +      </p>
  1.2032 +
  1.2033 +      <p>
  1.2034 +         Only when the user navigates away from the current browsing context can <a href="#networkservice" class="internalDFN"><code>NetworkService</code></a> objects be garbage-collected and records in the <a href="#dfn-entry-script-origin-s-url-whitelist" class="internalDFN">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a> be removed.
  1.2035 +      </p>
  1.2036 +
  1.2037 +   </div>
  1.2038 +
  1.2039 +
  1.2040 +    <div id="use-cases-and-requirements" about="#use-cases-and-requirements" typeof="bibo:Chapter" class="section">
  1.2041 +      <!--OddPage--><h2><span class="secno">9. </span>Use Cases and Requirements</h2>
  1.2042 +
  1.2043 +      <p>This section covers what the requirements are for this <acronym title="Application Programming Interface">API</acronym>, as well as illustrates some use cases.</p>
  1.2044 +
  1.2045 +      <ul class="rule">
  1.2046 +         <li>
  1.2047 +            Once a user has given permission, user agents should provide the ability for Web pages to communicate directly with a Local-networked Service.
  1.2048 +            <ul class="rule">
  1.2049 +               <li>
  1.2050 +                  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
  1.2051 +                  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
  1.2052 +                  application logic to communicate. Local devices providing the request service types are discovered and presented to the user for authorization. The user selects one
  1.2053 +                  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
  1.2054 +                  the user-authorized Local-networked services.
  1.2055 +               </li>
  1.2056 +            </ul>
  1.2057 +         </li>
  1.2058 +
  1.2059 +         <li>
  1.2060 +           Web pages should be able to communicate with Local-networked Services using the messaging channel supported by those Devices.
  1.2061 +           <ul class="rule">
  1.2062 +            <li>
  1.2063 +               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
  1.2064 +               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
  1.2065 +               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.
  1.2066 +            </li>
  1.2067 +           </ul>
  1.2068 +         </li>
  1.2069 +
  1.2070 +         <li>
  1.2071 +           Web pages should be able to communicate with Local-networked Services using the messaging format supported by those Devices.
  1.2072 +           <ul class="rule">
  1.2073 +            <li>
  1.2074 +               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
  1.2075 +               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
  1.2076 +               between <acronym title="Universal Plug-and-Play">UPnP</acronym>, 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
  1.2077 +               Server in the messaging format supported by that Device, which, in this example is a simple key/value pair text format.
  1.2078 +            </li>
  1.2079 +           </ul>
  1.2080 +         </li>
  1.2081 +
  1.2082 +         <li>
  1.2083 +           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.
  1.2084 +           <ul class="rule">
  1.2085 +            <li>
  1.2086 +               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
  1.2087 +               within the network, should not be accessible to the current Web page.
  1.2088 +            </li>
  1.2089 +           </ul>
  1.2090 +         </li>
  1.2091 +
  1.2092 +         <li>
  1.2093 +           A user should be able to share one or more Local-networked Services based on a particular service type request from a Web page.
  1.2094 +           <ul class="rule">
  1.2095 +            <li>
  1.2096 +               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
  1.2097 +               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
  1.2098 +               actions on to one or more of the authorized Local-networked Services.
  1.2099 +            </li>
  1.2100 +           </ul>
  1.2101 +         </li>
  1.2102 +
  1.2103 +         <li>
  1.2104 +           User agents should provide an <acronym title="Application Programming Interface">API</acronym> 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
  1.2105 +           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
  1.2106 +           these APIs occur silently without user intervention.
  1.2107 +         </li>
  1.2108 +      </ul>
  1.2109 +    </div>
  1.2110 +
  1.2111 +          <div class="informative appendix section" id="examples" about="#examples" typeof="bibo:Chapter">
  1.2112 +             <!--OddPage--><h2><span class="secno">A. </span>Examples</h2><em>This section is non-normative.</em>
  1.2113 +
  1.2114 +           <div class="example">
  1.2115 +            <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.
  1.2116 +            </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>
  1.2117 +            <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>
  1.2118 +            <hr>
  1.2119 +            <div><div id="highlighter_169377" class="syntaxhighlighter nogutter  js"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="js plain">&lt;input type=</code><code class="js string">"button"</code> <code class="js plain">value=</code><code class="js string">"Start"</code> <code class="js plain">onclick=</code><code class="js string">"start()"</code> <code class="js plain">id=</code><code class="js string">"startBtn"</code><code class="js plain">/&gt;</code></div><div class="line number2 index1 alt1"><code class="js plain">&lt;div id=</code><code class="js string">"debugconsole"</code><code class="js plain">&gt;&lt;/div&gt;</code></div><div class="line number3 index2 alt2">&nbsp;</div><div class="line number4 index3 alt1"><code class="js plain">&lt;script&gt;</code></div><div class="line number5 index4 alt2"><code class="js spaces">&nbsp;</code><code class="js keyword">var</code> <code class="js plain">startBtn = document.getElementById(</code><code class="js string">'startBtn'</code><code class="js plain">),</code></div><div class="line number6 index5 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug = document.getElementById(</code><code class="js string">'debugconsole'</code><code class="js plain">);</code></div><div class="line number7 index6 alt2">&nbsp;</div><div class="line number8 index7 alt1"><code class="js spaces">&nbsp;</code><code class="js keyword">function</code> <code class="js plain">start() {</code></div><div class="line number9 index8 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js keyword">if</code><code class="js plain">(navigator.getNetworkServices) {</code></div><div class="line number10 index9 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">navigator.getNetworkServices(</code><code class="js string">'zeroconf:_xbmc-jsonrpc._tcp'</code><code class="js plain">, gotXBMCService, error);</code></div><div class="line number11 index10 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">startBtn.disabled = </code><code class="js keyword">true</code><code class="js plain">;</code></div><div class="line number12 index11 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">} </code><code class="js keyword">else</code> <code class="js plain">{</code></div><div class="line number13 index12 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;Service Discovery &lt;acronym title="</code><code class="js plain">Application Programming Interface</code><code class="js string">"&gt;API&lt;/acronym&gt; not supported!"</code><code class="js plain">;</code></div><div class="line number14 index13 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">}</code></div><div class="line number15 index14 alt2"><code class="js spaces">&nbsp;</code><code class="js plain">}</code></div><div class="line number16 index15 alt1">&nbsp;</div><div class="line number17 index16 alt2"><code class="js spaces">&nbsp;</code><code class="js keyword">function</code> <code class="js plain">gotXBMCService(services) {</code></div><div class="line number18 index17 alt1">&nbsp;</div><div class="line number19 index18 alt2"><code class="js comments">// Listen for service disconnect messages</code></div><div class="line number20 index19 alt1">&nbsp;</div><div class="line number21 index20 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">services[0].addEventListener(</code><code class="js string">'readystatechange'</code><code class="js plain">, </code><code class="js keyword">function</code> <code class="js plain">( e ) {</code></div><div class="line number22 index21 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">if</code><code class="js plain">(services[0].readyState === services[0].UNAVAILABLE) {</code></div><div class="line number23 index22 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;"</code> <code class="js plain">+ services[0].name + </code><code class="js string">" disconnected."</code><code class="js plain">;</code></div><div class="line number24 index23 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">startBtn.disabled = </code><code class="js keyword">false</code><code class="js plain">;</code></div><div class="line number25 index24 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">}</code></div><div class="line number26 index25 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">}, </code><code class="js keyword">false</code><code class="js plain">);</code></div><div class="line number27 index26 alt2">&nbsp;</div><div class="line number28 index27 alt1"><code class="js comments">// Send a service message to get albums list (and process the service response)</code></div><div class="line number29 index28 alt2">&nbsp;</div><div class="line number30 index29 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js keyword">var</code> <code class="js plain">svcXhr = </code><code class="js keyword">new</code> <code class="js plain">XMLHttpRequest();</code></div><div class="line number31 index30 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">svcXhr.open(</code><code class="js string">"POST"</code><code class="js plain">, services[0].url + </code><code class="js string">"/getAlbums"</code><code class="js plain">); </code><code class="js comments">// services[0].url and its subresources have been</code></div><div class="line number32 index31 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js comments">// whitelisted for cross-site XHR use in this</code></div><div class="line number33 index32 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js comments">// current browsing context.</code></div><div class="line number34 index33 alt1">&nbsp;</div><div class="line number35 index34 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">svcXhr.setRequestHeader(</code><code class="js string">'Content-Type'</code><code class="js plain">, </code><code class="js string">'application/json-rpc'</code><code class="js plain">);</code></div><div class="line number36 index35 alt1">&nbsp;</div><div class="line number37 index36 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">svcXhr.addEventListener(</code><code class="js string">'readystatechange'</code><code class="js plain">, </code><code class="js keyword">function</code> <code class="js plain">( response ) {</code></div><div class="line number38 index37 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">if</code><code class="js plain">( response.readyState != 4 || response.status != 200 )</code></div><div class="line number39 index38 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">return</code><code class="js plain">;</code></div><div class="line number40 index39 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;"</code> <code class="js plain">+ services[0].name + </code><code class="js string">" response received: "</code><code class="js plain">;</code></div><div class="line number41 index40 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.textContent += JSON.parse(response.responseText);</code></div><div class="line number42 index41 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">}, </code><code class="js keyword">false</code><code class="js plain">);</code></div><div class="line number43 index42 alt2">&nbsp;</div><div class="line number44 index43 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js keyword">var</code> <code class="js plain">svcMsg = [</code></div><div class="line number45 index44 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">{ </code><code class="js string">"jsonrpc"</code><code class="js plain">: </code><code class="js string">"2.0"</code><code class="js plain">, </code><code class="js string">"method"</code><code class="js plain">: </code><code class="js string">"AudioLibrary.GetAlbums"</code><code class="js plain">, </code><code class="js string">"params"</code><code class="js plain">: { </code><code class="js string">"genreid"</code><code class="js plain">: -1,</code></div><div class="line number46 index45 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">"artistid"</code><code class="js plain">: -1, </code><code class="js string">"start"</code><code class="js plain">: -1, </code><code class="js string">"end"</code><code class="js plain">: -1 }, </code><code class="js string">"id"</code><code class="js plain">: </code><code class="js string">"1"</code> <code class="js plain">}</code></div><div class="line number47 index46 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">];</code></div><div class="line number48 index47 alt1">&nbsp;</div><div class="line number49 index48 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">svcXhr.send(JSON.stringify(svcMsg));</code></div><div class="line number50 index49 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;"</code> <code class="js plain">+ services[0].name + </code><code class="js string">" request sent: "</code><code class="js plain">;</code></div><div class="line number51 index50 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.textContent += JSON.stringify(svcMsg);</code></div><div class="line number52 index51 alt1">&nbsp;</div><div class="line number53 index52 alt2"><code class="js spaces">&nbsp;</code><code class="js plain">}</code></div><div class="line number54 index53 alt1">&nbsp;</div><div class="line number55 index54 alt2"><code class="js spaces">&nbsp;</code><code class="js keyword">function</code> <code class="js plain">error( err ) {</code></div><div class="line number56 index55 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;An error occurred obtaining a local network service."</code><code class="js plain">;</code></div><div class="line number57 index56 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;</code><code class="js plain">startBtn.disabled = </code><code class="js keyword">false</code><code class="js plain">;</code></div><div class="line number58 index57 alt1"><code class="js spaces">&nbsp;</code><code class="js plain">}</code></div><div class="line number59 index58 alt2"><code class="js plain">&lt;/script&gt;</code></div></div></td></tr></tbody></table></div></div>
  1.2120 +           </div>
  1.2121 +
  1.2122 +           <div class="example">
  1.2123 +            <p>
  1.2124 +             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
  1.2125 +             based on the service type requested. The user may also select multiple network services matching the selected service type.
  1.2126 +             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
  1.2127 +             (<var>urn:schemas-upnp-org:service:RenderingControl:1</var>).
  1.2128 +             <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.
  1.2129 +            </p>
  1.2130 +            <hr>
  1.2131 +            <div><div id="highlighter_978421" class="syntaxhighlighter nogutter  js"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="code"><div class="container"><div class="line number1 index0 alt2"><code class="js plain">&lt;select name=</code><code class="js string">"make"</code> <code class="js plain">id=</code><code class="js string">"make"</code><code class="js plain">&gt;</code></div><div class="line number2 index1 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">&lt;option selected=</code><code class="js string">"selected"</code> <code class="js plain">disabled=</code><code class="js string">"disabled"</code><code class="js plain">&gt;Select make&lt;/option&gt;</code></div><div class="line number3 index2 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">&lt;option&gt;Sony&lt;/option&gt;</code></div><div class="line number4 index3 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">&lt;option&gt;Philips&lt;/option&gt;</code></div><div class="line number5 index4 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">&lt;option&gt;Alba&lt;/option&gt;</code></div><div class="line number6 index5 alt1"><code class="js plain">&lt;/select&gt;</code></div><div class="line number7 index6 alt2"><code class="js plain">&lt;select name=</code><code class="js string">"model"</code> <code class="js plain">id=</code><code class="js string">"model"</code><code class="js plain">&gt;&lt;/select&gt;</code></div><div class="line number8 index7 alt1"><code class="js plain">&lt;div id=</code><code class="js string">"debugconsole"</code><code class="js plain">&gt;&lt;/div&gt;</code></div><div class="line number9 index8 alt2">&nbsp;</div><div class="line number10 index9 alt1"><code class="js plain">&lt;script&gt;</code></div><div class="line number11 index10 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js keyword">var</code> <code class="js plain">debug = document.getElementById(</code><code class="js string">'debugconsole'</code><code class="js plain">);</code></div><div class="line number12 index11 alt1">&nbsp;</div><div class="line number13 index12 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js keyword">var</code> <code class="js plain">models = {</code></div><div class="line number14 index13 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">"Sony"</code><code class="js plain">: [</code></div><div class="line number15 index14 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">{</code><code class="js string">"name"</code><code class="js plain">: </code><code class="js string">"Bravia TV S1000"</code><code class="js plain">, </code><code class="js string">"type"</code><code class="js plain">: </code><code class="js string">"upnp"</code><code class="js plain">, </code><code class="js string">"service"</code><code class="js plain">: </code><code class="js string">"urn:schemas-upnp-org:service:RenderingControl:1"</code> <code class="js plain">},</code></div><div class="line number16 index15 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">{</code><code class="js string">"name"</code><code class="js plain">: </code><code class="js string">"Bravia TV S2000"</code><code class="js plain">, </code><code class="js string">"type"</code><code class="js plain">: </code><code class="js string">"zeroconf"</code><code class="js plain">, </code><code class="js string">"service"</code><code class="js plain">: </code><code class="js string">"_mediarenderer._http._tcp"</code> <code class="js plain">},</code></div><div class="line number17 index16 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">{</code><code class="js string">"name"</code><code class="js plain">: </code><code class="js string">"HiFi WD10"</code><code class="js plain">, </code><code class="js string">"type"</code><code class="js plain">: </code><code class="js string">"upnp"</code><code class="js plain">, </code><code class="js string">"service"</code><code class="js plain">: </code><code class="js string">"urn:schemas-upnp-org:service:RenderingControl:1"</code> <code class="js plain">}</code></div><div class="line number18 index17 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">],</code></div><div class="line number19 index18 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">"Philips"</code><code class="js plain">: [ </code><code class="js comments">/* ... */</code> <code class="js plain">],</code></div><div class="line number20 index19 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">"Alba"</code><code class="js plain">: [ </code><code class="js comments">/* ... */</code> <code class="js plain">]</code></div><div class="line number21 index20 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">};</code></div><div class="line number22 index21 alt1">&nbsp;</div><div class="line number23 index22 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js keyword">var</code> <code class="js plain">makeEl = document.getElementById(</code><code class="js string">"make"</code><code class="js plain">),</code></div><div class="line number24 index23 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">modelEl = document.getElementById(</code><code class="js string">"model"</code><code class="js plain">);</code></div><div class="line number25 index24 alt2">&nbsp;</div><div class="line number26 index25 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">makeEl.addEventListener(</code><code class="js string">'change'</code><code class="js plain">, </code><code class="js keyword">function</code><code class="js plain">() {</code></div><div class="line number27 index26 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">modelEl.innerHTML = </code><code class="js string">""</code><code class="js plain">; </code><code class="js comments">// reset</code></div><div class="line number28 index27 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">var</code> <code class="js plain">defaultOption = document.createElement(</code><code class="js string">"option"</code><code class="js plain">);</code></div><div class="line number29 index28 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">defaultOption.textContent = </code><code class="js string">"Select model"</code><code class="js plain">;</code></div><div class="line number30 index29 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">defaultOption.setAttribute(</code><code class="js string">"disabled"</code><code class="js plain">, </code><code class="js string">"disabled"</code><code class="js plain">);</code></div><div class="line number31 index30 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">defaultOption.setAttribute(</code><code class="js string">"selected"</code><code class="js plain">, </code><code class="js string">"selected"</code><code class="js plain">);</code></div><div class="line number32 index31 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">modelEl.appendChild(defaultOption);</code></div><div class="line number33 index32 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">for</code><code class="js plain">(</code><code class="js keyword">var</code> <code class="js plain">i = 0, l = models[makeEl.value].length; i &lt; l; i++) {</code></div><div class="line number34 index33 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">var</code> <code class="js plain">option = document.createElement(</code><code class="js string">"option"</code><code class="js plain">);</code></div><div class="line number35 index34 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">option.textContent = models[makeEl.value][i][</code><code class="js string">"name"</code><code class="js plain">];</code></div><div class="line number36 index35 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">option.setAttribute(</code><code class="js string">"value"</code><code class="js plain">, models[makeEl.value][i][</code><code class="js string">"type"</code><code class="js plain">] + </code><code class="js string">":"</code> <code class="js plain">+ models[makeEl.value][i][</code><code class="js string">"service"</code><code class="js plain">]);</code></div><div class="line number37 index36 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">modelEl.appendChild(option);</code></div><div class="line number38 index37 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">}</code></div><div class="line number39 index38 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">}, </code><code class="js keyword">false</code><code class="js plain">);</code></div><div class="line number40 index39 alt1">&nbsp;</div><div class="line number41 index40 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">modelEl.addEventListener(</code><code class="js string">'change'</code><code class="js plain">, </code><code class="js keyword">function</code><code class="js plain">() {</code></div><div class="line number42 index41 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">if</code><code class="js plain">(navigator.getNetworkServices &amp;&amp;</code></div><div class="line number43 index42 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">modelEl.value == </code><code class="js string">"upnp:urn:schemas-upnp-org:service:RenderingControl:1"</code><code class="js plain">) {</code></div><div class="line number44 index43 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">navigator.getNetworkServices(modelEl.value, successCallback, errorCallback);</code></div><div class="line number45 index44 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">} </code><code class="js keyword">else</code> <code class="js keyword">if</code> <code class="js plain">(modelEl.value == </code><code class="js string">"zeroconf:_mediarenderer._http._tcp"</code><code class="js plain">) {</code></div><div class="line number46 index45 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;Service type is not implemented by this application."</code><code class="js plain">;</code></div><div class="line number47 index46 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">} </code><code class="js keyword">else</code> <code class="js plain">{</code></div><div class="line number48 index47 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;Service Discovery is not supported!"</code><code class="js plain">;</code></div><div class="line number49 index48 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">}</code></div><div class="line number50 index49 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">}, </code><code class="js keyword">false</code><code class="js plain">);</code></div><div class="line number51 index50 alt2"><code class="js plain">&lt;/script&gt;</code></div><div class="line number52 index51 alt1">&nbsp;</div><div class="line number53 index52 alt2"><code class="js plain">&lt;script&gt;</code></div><div class="line number54 index53 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js keyword">function</code> <code class="js plain">successCallback( services ) {</code></div><div class="line number55 index54 alt2">&nbsp;</div><div class="line number56 index55 alt1"><code class="js spaces">&nbsp;&nbsp;</code><code class="js comments">// Listen for service push messages</code></div><div class="line number57 index56 alt2">&nbsp;</div><div class="line number58 index57 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">services[0].addEventListener(</code><code class="js string">'message'</code><code class="js plain">, </code><code class="js keyword">function</code> <code class="js plain">( msg ) {</code></div><div class="line number59 index58 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;"</code> <code class="js plain">+ services[0].name + </code><code class="js string">" event received: "</code><code class="js plain">;</code></div><div class="line number60 index59 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.textContent += msg.data;</code></div><div class="line number61 index60 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">}, </code><code class="js keyword">false</code><code class="js plain">);</code></div><div class="line number62 index61 alt1">&nbsp;</div><div class="line number63 index62 alt2"><code class="js spaces">&nbsp;</code><code class="js comments">// Send a control signal to mute the service audio</code></div><div class="line number64 index63 alt1">&nbsp;</div><div class="line number65 index64 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">var</code> <code class="js plain">svcXhr = </code><code class="js keyword">new</code> <code class="js plain">XMLHttpRequest();</code></div><div class="line number66 index65 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">svcXhr.open(</code><code class="js string">"POST"</code><code class="js plain">, services[0].url); </code><code class="js comments">// services[0].url and its</code></div><div class="line number67 index66 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js comments">// subresources have been whitelisted for</code></div><div class="line number68 index67 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js comments">// cross-site XHR use in this current</code></div><div class="line number69 index68 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js comments">// browsing context.</code></div><div class="line number70 index69 alt1">&nbsp;</div><div class="line number71 index70 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">svcXhr.setRequestHeader(</code><code class="js string">'SOAPAction'</code><code class="js plain">, </code><code class="js string">'urn:schemas-upnp-org:service:RenderingControl:1#SetMute'</code><code class="js plain">);</code></div><div class="line number72 index71 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">svcXhr.setRequestHeader(</code><code class="js string">'Content-Type'</code><code class="js plain">, </code><code class="js string">'text/xml; charset="utf-8";'</code><code class="js plain">);</code></div><div class="line number73 index72 alt2">&nbsp;</div><div class="line number74 index73 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">svcXhr.onreadystatechange = </code><code class="js keyword">function</code> <code class="js plain">( response ) {</code></div><div class="line number75 index74 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">if</code><code class="js plain">( response.readyState != 4 || response.status != 200 )</code></div><div class="line number76 index75 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">return</code><code class="js plain">;</code></div><div class="line number77 index76 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;"</code> <code class="js plain">+ services[0].name + </code><code class="js string">" response received: "</code><code class="js plain">;</code></div><div class="line number78 index77 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.textContent += response.responseXML;</code></div><div class="line number79 index78 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">}</code></div><div class="line number80 index79 alt1">&nbsp;</div><div class="line number81 index80 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js comments">// Service messaging to mute the provided service</code></div><div class="line number82 index81 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js keyword">var</code> <code class="js plain">svcMsg = </code><code class="js string">'&lt;?xml version="1.0" encoding="utf-8"?&gt;'</code> <code class="js plain">+</code></div><div class="line number83 index82 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'&lt;s:Envelope s:encodingStyle="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>" '</code> <code class="js plain">+</code></div><div class="line number84 index83 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'xmlns:s="<a href="http://schemas.xmlsoap.org/soap/envelope/">http://schemas.xmlsoap.org/soap/envelope/</a>"&gt;'</code> <code class="js plain">+</code></div><div class="line number85 index84 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'&lt;s:Body&gt;'</code> <code class="js plain">+</code></div><div class="line number86 index85 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'&lt;u:SetMute xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"&gt;'</code> <code class="js plain">+</code></div><div class="line number87 index86 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'&lt;InstanceID&gt;0&lt;/InstanceID&gt;'</code> <code class="js plain">+</code></div><div class="line number88 index87 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'&lt;Channel&gt;Master&lt;/Channel&gt;'</code> <code class="js plain">+</code></div><div class="line number89 index88 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'&lt;DesiredMute&gt;true&lt;/DesiredMute&gt;'</code> <code class="js plain">+</code></div><div class="line number90 index89 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'&lt;/u:SetMute&gt;'</code> <code class="js plain">+</code></div><div class="line number91 index90 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'&lt;/s:Body&gt;'</code> <code class="js plain">+</code></div><div class="line number92 index91 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js string">'&lt;/s:Envelope&gt;'</code><code class="js plain">;</code></div><div class="line number93 index92 alt2">&nbsp;</div><div class="line number94 index93 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">svcXhr.send(svcMsg);</code></div><div class="line number95 index94 alt2"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;"</code> <code class="js plain">+ services[0].name + </code><code class="js string">" request sent: "</code><code class="js plain">;</code></div><div class="line number96 index95 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.textContent += svcMsg;</code></div><div class="line number97 index96 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">}</code></div><div class="line number98 index97 alt1">&nbsp;</div><div class="line number99 index98 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js keyword">function</code> <code class="js plain">errorCallback( error ) {</code></div><div class="line number100 index99 alt1"><code class="js spaces">&nbsp;&nbsp;&nbsp;&nbsp;</code><code class="js plain">debug.innerHTML += </code><code class="js string">"&lt;br&gt;An error occurred: "</code> <code class="js plain">+ error.code;</code></div><div class="line number101 index100 alt2"><code class="js spaces">&nbsp;&nbsp;</code><code class="js plain">}</code></div><div class="line number102 index101 alt1"><code class="js plain">&lt;/script&gt;</code></div></div></td></tr></tbody></table></div></div>
  1.2132 +          </div>
  1.2133 +
  1.2134 +       </div>
  1.2135 +
  1.2136 +    <div id="acknowledgements" about="#acknowledgements" typeof="bibo:Chapter" class="section">
  1.2137 +      <!--OddPage--><h2><span class="secno">B. </span>Acknowledgements</h2>
  1.2138 +
  1.2139 +      <p>Thanks are expressed by the editor to the following individuals for their feedback on this specification to date (in alphabetical order):
  1.2140 +      <br><br>
  1.2141 +      Gar Bergstedt, Lars-Erik Bolstad, Hari G Kumar, Bob Lund, Giuseppe Pascale, Marcin Simonides, Clarke Stevens, Christian Söderström, Mark Vickers, ...</p>
  1.2142 +
  1.2143 +      <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):
  1.2144 +      <br><br>
  1.2145 +      CableLabs, Opera Software ASA, W3C Device APIs Working Group, W3C Web and TV Interest Group, ...</p>
  1.2146 +    </div>
  1.2147 +
  1.2148 +
  1.2149 +
  1.2150 +
  1.2151 +
  1.2152 +<div id="references" class="appendix section" about="#references" typeof="bibo:Chapter"><!--OddPage--><h2><span class="secno">C. </span>References</h2><section id="normative-references" about="#normative-references" typeof="bibo:Chapter"><h3><span class="secno">C.1 </span>Normative references</h3><dl class="bibliography" about=""><dt id="bib-DNS-SD">[DNS-SD]</dt><dd rel="dc:requires">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></dd><dt id="bib-DOM-CORE">[DOM-CORE]</dt><dd rel="dc:requires">Anne van Kesteren; et al. <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html/"><cite>Web DOM Core</cite></a>. W3C Working Draft. (Work in progress.) 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> </dd><dt id="bib-HTML5">[HTML5]</dt><dd rel="dc:requires">Ian Hickson; David Hyatt. <a href="http://www.w3.org/TR/2010/WD-html5-20100304/"><cite>HTML 5.</cite></a> 4 March 2010. W3C Working Draft. (Work in progress.) URL: <a href="http://www.w3.org/TR/2010/WD-html5-20100304/">http://www.w3.org/TR/2010/WD-html5-20100304/</a> </dd><dt id="bib-MDNS">[MDNS]</dt><dd rel="dc:requires">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></dd><dt id="bib-RFC2119">[RFC2119]</dt><dd rel="dc:requires">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> </dd><dt id="bib-UPNP">[UPNP]</dt><dd rel="dc:requires">UPnP Forum. <a href="http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.1.pdf"><cite>UPnP Device Architecture. Version 1.1.</cite></a>. 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></dd><dt id="bib-WEBIDL">[WEBIDL]</dt><dd rel="dc:requires">Cameron McCormack. <a href="http://www.w3.org/TR/2008/WD-WebIDL-20081219"><cite>Web IDL.</cite></a> 19 December 2008. W3C Working Draft. (Work in progress.) URL: <a href="http://www.w3.org/TR/2008/WD-WebIDL-20081219">http://www.w3.org/TR/2008/WD-WebIDL-20081219</a> </dd><dt id="bib-WEBMESSAGING">[WEBMESSAGING]</dt><dd rel="dc:requires">Ian Hickson. <cite><a href="http://dev.w3.org/html5/postmsg/">HTML5 Web Messaging</a></cite>. W3C Working Draft. (Work in progress.) URL: <a href="http://dev.w3.org/html5/postmsg/">http://dev.w3.org/html5/postmsg/</a> </dd><dt id="bib-ZEROCONF">[ZEROCONF]</dt><dd rel="dc:requires">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></dd></dl></section></div></body></html>
  1.2153 \ No newline at end of file
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/discovery-api/Overview.src.html	Fri Aug 03 12:59:17 2012 +0200
     2.3 @@ -0,0 +1,1900 @@
     2.4 +<!DOCTYPE html>
     2.5 +<html>
     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 +    <!-- This spec has been compiled with ReSpec v2 -->
    2.10 +    <script type="text/javascript" class='remove'>
    2.11 +      var respecConfig = {
    2.12 +          specStatus: "unofficial",
    2.13 +          shortName:  "discovery",
    2.14 +          edDraftURI: "http://dev.w3.org/2009/dap/discovery/",
    2.15 +          editors: [
    2.16 +                {   name:       "Rich Tibbett",
    2.17 +                    //url:        "http://richt.me/",
    2.18 +                    company:    "Opera Software ASA",
    2.19 +                    companyURL: "http://opera.com/" },
    2.20 +                {   name:       "Clarke Stevens",
    2.21 +                    //url:      "",
    2.22 +                    company:    "CableLabs",
    2.23 +                    companyURL: "http://cablelabs.com/"
    2.24 +                }
    2.25 +          ],
    2.26 +          //extraCSS:             ["./css/respec2.css"],
    2.27 +          noIDLIn:  true,
    2.28 +
    2.29 +          wg:           "Device APIs and Policy Working Group",
    2.30 +          wgURI:        "http://www.w3.org/2009/dap/",
    2.31 +          wgPublicList: "public-device-apis",
    2.32 +          wgPatentURI:  "http://www.w3.org/2004/01/pp-impl/43696/status",
    2.33 +      };
    2.34 +    </script>
    2.35 +
    2.36 +    <style type="text/css">
    2.37 +      /**
    2.38 +       * SyntaxHighlighter
    2.39 +       * http://alexgorbatchev.com/SyntaxHighlighter
    2.40 +       *
    2.41 +       * SyntaxHighlighter is donationware. If you are using it, please donate.
    2.42 +       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
    2.43 +       *
    2.44 +       * @version
    2.45 +       * 3.0.83 (July 02 2010)
    2.46 +       *
    2.47 +       * @copyright
    2.48 +       * Copyright (C) 2004-2010 Alex Gorbatchev.
    2.49 +       *
    2.50 +       * @license
    2.51 +       * Dual licensed under the MIT and GPL licenses.
    2.52 +       */
    2.53 +      .syntaxhighlighter a,
    2.54 +      .syntaxhighlighter div,
    2.55 +      .syntaxhighlighter code,
    2.56 +      .syntaxhighlighter table,
    2.57 +      .syntaxhighlighter table td,
    2.58 +      .syntaxhighlighter table tr,
    2.59 +      .syntaxhighlighter table tbody,
    2.60 +      .syntaxhighlighter table thead,
    2.61 +      .syntaxhighlighter table caption,
    2.62 +      .syntaxhighlighter textarea {
    2.63 +        -moz-border-radius: 0 0 0 0 !important;
    2.64 +        -webkit-border-radius: 0 0 0 0 !important;
    2.65 +        background: none !important;
    2.66 +        border: 0 !important;
    2.67 +        bottom: auto !important;
    2.68 +        float: none !important;
    2.69 +        height: auto !important;
    2.70 +        left: auto !important;
    2.71 +        line-height: 1.1em !important;
    2.72 +        margin: 0 !important;
    2.73 +        outline: 0 !important;
    2.74 +        overflow: visible !important;
    2.75 +        padding: 0 !important;
    2.76 +        position: static !important;
    2.77 +        right: auto !important;
    2.78 +        text-align: left !important;
    2.79 +        top: auto !important;
    2.80 +        vertical-align: baseline !important;
    2.81 +        width: auto !important;
    2.82 +        box-sizing: content-box !important;
    2.83 +        font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
    2.84 +        font-weight: normal !important;
    2.85 +        font-style: normal !important;
    2.86 +        font-size: 1em !important;
    2.87 +        min-height: inherit !important;
    2.88 +        min-height: auto !important;
    2.89 +      }
    2.90 +
    2.91 +      .syntaxhighlighter {
    2.92 +        width: 100% !important;
    2.93 +        margin: 1em 0 1em 0 !important;
    2.94 +        position: relative !important;
    2.95 +        overflow: auto !important;
    2.96 +        font-size: 0.8em !important;
    2.97 +      }
    2.98 +      .syntaxhighlighter.source {
    2.99 +        overflow: hidden !important;
   2.100 +      }
   2.101 +      .syntaxhighlighter .bold {
   2.102 +        font-weight: bold !important;
   2.103 +      }
   2.104 +      .syntaxhighlighter .italic {
   2.105 +        font-style: italic !important;
   2.106 +      }
   2.107 +      .syntaxhighlighter .line {
   2.108 +        white-space: pre !important;
   2.109 +      }
   2.110 +      .syntaxhighlighter table {
   2.111 +        width: 100% !important;
   2.112 +      }
   2.113 +      .syntaxhighlighter table caption {
   2.114 +        text-align: left !important;
   2.115 +        padding: .5em 0 0.5em 1em !important;
   2.116 +      }
   2.117 +      .syntaxhighlighter table td.code {
   2.118 +        width: 100% !important;
   2.119 +      }
   2.120 +      .syntaxhighlighter table td.code .container {
   2.121 +        position: relative !important;
   2.122 +      }
   2.123 +      .syntaxhighlighter table td.code .container textarea {
   2.124 +        box-sizing: border-box !important;
   2.125 +        position: absolute !important;
   2.126 +        left: 0 !important;
   2.127 +        top: 0 !important;
   2.128 +        width: 100% !important;
   2.129 +        height: 100% !important;
   2.130 +        border: none !important;
   2.131 +
   2.132 +        padding-left: 1em !important;
   2.133 +        overflow: hidden !important;
   2.134 +        white-space: pre !important;
   2.135 +      }
   2.136 +      .syntaxhighlighter table td.gutter .line {
   2.137 +        text-align: right !important;
   2.138 +        padding: 0 0.5em 0 1em !important;
   2.139 +      }
   2.140 +      .syntaxhighlighter table td.code .line {
   2.141 +        padding: 0 1em !important;
   2.142 +      }
   2.143 +      .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
   2.144 +        padding-left: 0em !important;
   2.145 +      }
   2.146 +      .syntaxhighlighter.show {
   2.147 +        display: block !important;
   2.148 +      }
   2.149 +      .syntaxhighlighter.collapsed table {
   2.150 +        display: none !important;
   2.151 +      }
   2.152 +      .syntaxhighlighter.collapsed .toolbar {
   2.153 +        padding: 0.1em 0.8em 0em 0.8em !important;
   2.154 +        font-size: 1em !important;
   2.155 +        position: static !important;
   2.156 +        width: auto !important;
   2.157 +        height: auto !important;
   2.158 +      }
   2.159 +      .syntaxhighlighter.collapsed .toolbar span {
   2.160 +        display: inline !important;
   2.161 +        margin-right: 1em !important;
   2.162 +      }
   2.163 +      .syntaxhighlighter.collapsed .toolbar span a {
   2.164 +        padding: 0 !important;
   2.165 +        display: none !important;
   2.166 +      }
   2.167 +      .syntaxhighlighter.collapsed .toolbar span a.expandSource {
   2.168 +        display: inline !important;
   2.169 +      }
   2.170 +      .syntaxhighlighter .toolbar {
   2.171 +        position: absolute !important;
   2.172 +        right: 1px !important;
   2.173 +        top: 1px !important;
   2.174 +        width: 11px !important;
   2.175 +        height: 11px !important;
   2.176 +        font-size: 10px !important;
   2.177 +        z-index: 10 !important;
   2.178 +      }
   2.179 +      .syntaxhighlighter .toolbar span.title {
   2.180 +        display: inline !important;
   2.181 +      }
   2.182 +      .syntaxhighlighter .toolbar a {
   2.183 +        display: block !important;
   2.184 +        text-align: center !important;
   2.185 +        text-decoration: none !important;
   2.186 +        padding-top: 1px !important;
   2.187 +      }
   2.188 +      .syntaxhighlighter .toolbar a.expandSource {
   2.189 +        display: none !important;
   2.190 +      }
   2.191 +      .syntaxhighlighter.ie {
   2.192 +        font-size: .9em !important;
   2.193 +        padding: 1px 0 1px 0 !important;
   2.194 +      }
   2.195 +      .syntaxhighlighter.ie .toolbar {
   2.196 +        line-height: 8px !important;
   2.197 +      }
   2.198 +      .syntaxhighlighter.ie .toolbar a {
   2.199 +        padding-top: 0px !important;
   2.200 +      }
   2.201 +      .syntaxhighlighter.printing .line.alt1 .content,
   2.202 +      .syntaxhighlighter.printing .line.alt2 .content,
   2.203 +      .syntaxhighlighter.printing .line.highlighted .number,
   2.204 +      .syntaxhighlighter.printing .line.highlighted.alt1 .content,
   2.205 +      .syntaxhighlighter.printing .line.highlighted.alt2 .content {
   2.206 +        background: none !important;
   2.207 +      }
   2.208 +      .syntaxhighlighter.printing .line .number {
   2.209 +        color: #bbbbbb !important;
   2.210 +      }
   2.211 +      .syntaxhighlighter.printing .line .content {
   2.212 +        color: black !important;
   2.213 +      }
   2.214 +      .syntaxhighlighter.printing .toolbar {
   2.215 +        display: none !important;
   2.216 +      }
   2.217 +      .syntaxhighlighter.printing a {
   2.218 +        text-decoration: none !important;
   2.219 +      }
   2.220 +      .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
   2.221 +        color: black !important;
   2.222 +      }
   2.223 +      .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
   2.224 +        color: #008200 !important;
   2.225 +      }
   2.226 +      .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
   2.227 +        color: blue !important;
   2.228 +      }
   2.229 +      .syntaxhighlighter.printing .keyword {
   2.230 +        color: #006699 !important;
   2.231 +        font-weight: bold !important;
   2.232 +      }
   2.233 +      .syntaxhighlighter.printing .preprocessor {
   2.234 +        color: gray !important;
   2.235 +      }
   2.236 +      .syntaxhighlighter.printing .variable {
   2.237 +        color: #aa7700 !important;
   2.238 +      }
   2.239 +      .syntaxhighlighter.printing .value {
   2.240 +        color: #009900 !important;
   2.241 +      }
   2.242 +      .syntaxhighlighter.printing .functions {
   2.243 +        color: #ff1493 !important;
   2.244 +      }
   2.245 +      .syntaxhighlighter.printing .constants {
   2.246 +        color: #0066cc !important;
   2.247 +      }
   2.248 +      .syntaxhighlighter.printing .script {
   2.249 +        font-weight: bold !important;
   2.250 +      }
   2.251 +      .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
   2.252 +        color: gray !important;
   2.253 +      }
   2.254 +      .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
   2.255 +        color: #ff1493 !important;
   2.256 +      }
   2.257 +      .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
   2.258 +        color: red !important;
   2.259 +      }
   2.260 +      .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
   2.261 +        color: black !important;
   2.262 +      }
   2.263 +    </style>
   2.264 +    <style type="text/css">
   2.265 +      /**
   2.266 +       * SyntaxHighlighter
   2.267 +       * http://alexgorbatchev.com/SyntaxHighlighter
   2.268 +       *
   2.269 +       * SyntaxHighlighter is donationware. If you are using it, please donate.
   2.270 +       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
   2.271 +       *
   2.272 +       * @version
   2.273 +       * 3.0.83 (July 02 2010)
   2.274 +       *
   2.275 +       * @copyright
   2.276 +       * Copyright (C) 2004-2010 Alex Gorbatchev.
   2.277 +       *
   2.278 +       * @license
   2.279 +       * Dual licensed under the MIT and GPL licenses.
   2.280 +       */
   2.281 +      .syntaxhighlighter {
   2.282 +        background-color: none !important;
   2.283 +      }
   2.284 +      .syntaxhighlighter .line.alt1 {
   2.285 +        background-color: none !important;
   2.286 +      }
   2.287 +      .syntaxhighlighter .line.alt2 {
   2.288 +        background-color: none !important;
   2.289 +      }
   2.290 +      .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
   2.291 +        background-color: none !important;
   2.292 +      }
   2.293 +      .syntaxhighlighter .line.highlighted.number {
   2.294 +        color: black !important;
   2.295 +      }
   2.296 +      .syntaxhighlighter table caption {
   2.297 +        color: black !important;
   2.298 +      }
   2.299 +      .syntaxhighlighter .gutter {
   2.300 +        color: #afafaf !important;
   2.301 +      }
   2.302 +      .syntaxhighlighter .gutter .line {
   2.303 +        border-right: 3px solid #6ce26c !important;
   2.304 +      }
   2.305 +      .syntaxhighlighter .gutter .line.highlighted {
   2.306 +        background-color: #6ce26c !important;
   2.307 +        color: white !important;
   2.308 +      }
   2.309 +      .syntaxhighlighter.printing .line .content {
   2.310 +        border: none !important;
   2.311 +      }
   2.312 +      .syntaxhighlighter.collapsed {
   2.313 +        overflow: visible !important;
   2.314 +      }
   2.315 +      .syntaxhighlighter.collapsed .toolbar {
   2.316 +        color: blue !important;
   2.317 +        background: none !important;
   2.318 +        border: 1px solid #6ce26c !important;
   2.319 +      }
   2.320 +      .syntaxhighlighter.collapsed .toolbar a {
   2.321 +        color: blue !important;
   2.322 +      }
   2.323 +      .syntaxhighlighter.collapsed .toolbar a:hover {
   2.324 +        color: red !important;
   2.325 +      }
   2.326 +      .syntaxhighlighter .toolbar {
   2.327 +        color: white !important;
   2.328 +        background: #6ce26c !important;
   2.329 +        border: none !important;
   2.330 +      }
   2.331 +      .syntaxhighlighter .toolbar a {
   2.332 +        color: white !important;
   2.333 +      }
   2.334 +      .syntaxhighlighter .toolbar a:hover {
   2.335 +        color: black !important;
   2.336 +      }
   2.337 +      .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
   2.338 +        color: black !important;
   2.339 +      }
   2.340 +      .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
   2.341 +        color: #008200 !important;
   2.342 +      }
   2.343 +      .syntaxhighlighter .string, .syntaxhighlighter .string a {
   2.344 +        color: blue !important;
   2.345 +      }
   2.346 +      .syntaxhighlighter .keyword {
   2.347 +        color: #006699 !important;
   2.348 +      }
   2.349 +      .syntaxhighlighter .preprocessor {
   2.350 +        color: gray !important;
   2.351 +      }
   2.352 +      .syntaxhighlighter .variable {
   2.353 +        color: #aa7700 !important;
   2.354 +      }
   2.355 +      .syntaxhighlighter .value {
   2.356 +        color: #009900 !important;
   2.357 +      }
   2.358 +      .syntaxhighlighter .functions {
   2.359 +        color: #ff1493 !important;
   2.360 +      }
   2.361 +      .syntaxhighlighter .constants {
   2.362 +        color: #0066cc !important;
   2.363 +      }
   2.364 +      .syntaxhighlighter .script {
   2.365 +        font-weight: bold !important;
   2.366 +        color: #006699 !important;
   2.367 +        background-color: none !important;
   2.368 +      }
   2.369 +      .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
   2.370 +        color: gray !important;
   2.371 +      }
   2.372 +      .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
   2.373 +        color: #ff1493 !important;
   2.374 +      }
   2.375 +      .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
   2.376 +        color: red !important;
   2.377 +      }
   2.378 +
   2.379 +      .syntaxhighlighter .keyword {
   2.380 +        font-weight: bold !important;
   2.381 +      }
   2.382 +    </style>
   2.383 +    <script src="tools/syntaxhighlighter/js/shCore.js" type="text/javascript" class='remove'></script>
   2.384 +    <script src="tools/syntaxhighlighter/js/shAutoloader.js" type="text/javascript" class='remove'></script>
   2.385 +    <script src="tools/syntaxhighlighter/js/shBrushXml.js" type="text/javascript" class='remove'></script>
   2.386 +    <script src="tools/syntaxhighlighter/js/shBrushJScript.js" type="text/javascript" class='remove'></script>
   2.387 +
   2.388 +    <script src='./js/profiles/w3c-common-loader.js' type="text/javascript" class='remove'></script>
   2.389 +    <style type="text/css">
   2.390 +      /* Custom CSS optimizations (Richard Tibbett) */
   2.391 +
   2.392 +      /* Add better spacing to sections */
   2.393 +      section, .section { margin-bottom: 2em; }
   2.394 +
   2.395 +      /* Reduce note & issue render size */
   2.396 +      .note, .issue { font-size:0.8em; }
   2.397 +
   2.398 +      /* Add addition spacing to <ol> and <ul> for rule definition */
   2.399 +      ol.rule li, ul.rule li { padding:0.6em; }
   2.400 +
   2.401 +      pre.widl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; position: relative; }
   2.402 +      pre.widl :link, pre.widl :visited { color: #000; background: transparent; }
   2.403 +      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.404 +
   2.405 +      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.406 +      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.407 +
   2.408 +      dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #DDFFDD; }
   2.409 +      hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
   2.410 +      dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
   2.411 +      dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
   2.412 +      dl.domintro dd p { margin: 0.5em 0; }
   2.413 +      dl.domintro code {font-size: inherit; font-style: italic; }
   2.414 +      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.415 +    </style>
   2.416 +  </head>
   2.417 +
   2.418 +  <body>
   2.419 +    <section id='abstract'>
   2.420 +      <p>
   2.421 +        This specification defines a mechanism for an HTML document to discover and subsequently communicate with <acronym title="Hypertext Transfer Protocol">HTTP</acronym>-based services
   2.422 +        advertised via common discovery protocols within a user's network.
   2.423 +      </p>
   2.424 +    </section>
   2.425 +
   2.426 +    <section id='sotd'>
   2.427 +      <p>
   2.428 +        This document represents the early consensus of the group on the scope and features of the proposed
   2.429 +        API.
   2.430 +      </p>
   2.431 +    </section>
   2.432 +
   2.433 +    <section class="informative">
   2.434 +      <h3>Introduction</h3>
   2.435 +
   2.436 +      <p>To enable Web pages to connect and communicate with Local-networked Services provided over HTTP, this specification introduces the
   2.437 +      <a href="#navigatornetworkservice"><code>NavigatorNetworkService</code></a> interface.</p>
   2.438 +
   2.439 +      <p>
   2.440 +         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,
   2.441 +         is expected before the web page is able to interact with any Local-networked Services.
   2.442 +      </p>
   2.443 +
   2.444 +      <p>
   2.445 +         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.446 +      </p>
   2.447 +
   2.448 +      <p>
   2.449 +         The user agent, having captured all advertised services on the network from the Service Discovery mechanisms included in this recommendation, attempts to match
   2.450 +      the requested service type to a discovered service according to the processing described herein.
   2.451 +      </p>
   2.452 +
   2.453 +      <p>
   2.454 +          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.455 +          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.456 +      </p>
   2.457 +
   2.458 +      <p>
   2.459 +         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.460 +         authorized via the provided API.
   2.461 +         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.462 +         connected Local-networked Service.
   2.463 +      </p>
   2.464 +
   2.465 +      <div class="example">
   2.466 +       <p>Example of requesting a DNS-SD advertised service:</p>
   2.467 +       <hr />
   2.468 +       <pre class="brush:js">function showServices( services ) {
   2.469 +  // Show a list of all the services provided to the web page
   2.470 +  for(var i = 0, l = services.length; i < l; i++) console.log( services[i].name );
   2.471 +}
   2.472 +
   2.473 +navigator.getNetworkServices('zeroconf:_boxee-jsonrpc._tcp', showServices);</pre>
   2.474 +      </div>
   2.475 +
   2.476 +      <div class="example">
   2.477 +        <p>Example of requesting a UPnP advertised service, also handling error conditions:</p>
   2.478 +        <hr />
   2.479 +        <pre class="brush:js">function showServices( services ) {
   2.480 +  // Show a list of all the services provided to the web page
   2.481 +  for(var i = 0, l = services.length; i < l; i++) console.log( services[i].name );
   2.482 +}
   2.483 +
   2.484 +function error( e ) {
   2.485 +  console.log( "Error occurred: " + e.code );
   2.486 +}
   2.487 +
   2.488 +navigator.getNetworkServices('upnp:urn:schemas-upnp-org:service:ContentDirectory:1', showServices, error);</pre>
   2.489 +      </div>
   2.490 +
   2.491 +      <div class="example">
   2.492 +        <p>Example of requesting either a DNS-SD or UPnP advertised service:</p>
   2.493 +        <hr />
   2.494 +        <pre class="brush:js">function showServices( services ) {
   2.495 +  // Show a list of all the services provided to the web page (+ service type)
   2.496 +  for(var i = 0, l = services.length; i < l; i++)
   2.497 +     console.log( services[i].name + '(' + services[i].type + ')' );
   2.498 +}
   2.499 +
   2.500 +navigator.getNetworkServices([
   2.501 +  'zeroconf:_boxee-jsonrpc._tcp',
   2.502 +  'upnp:urn:schemas-upnp-org:service:ContentDirectory:1'
   2.503 +], showServices);</pre>
   2.504 +      </div>
   2.505 +
   2.506 +      <p>For more detailed examples see the <a href="#examples">Examples</a> section.
   2.507 +    </section>
   2.508 +
   2.509 +    <section
   2.510 +     id='conformance'>
   2.511 +
   2.512 +     <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.513 +     meaning of the key word ("must", "should", "may", etc) used in introducing the algorithm.</p>
   2.514 +
   2.515 +     <p>
   2.516 +      Some conformance requirements are phrased as requirements on attributes, methods or objects. Such requirements are to be interpreted as requirements on user agents.
   2.517 +     </p>
   2.518 +
   2.519 +     <p>
   2.520 +      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.521 +      this specification are intended to be easy to follow, and not intended to be performant.)
   2.522 +     </p>
   2.523 +
   2.524 +     <p>
   2.525 +      The only conformance class defined by this specification is a <dfn>user agent</dfn>.
   2.526 +     </p>
   2.527 +
   2.528 +     <p>
   2.529 +      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.530 +      around platform-specific limitations.
   2.531 +     </p>
   2.532 +
   2.533 +     <p>
   2.534 +      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.535 +      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.536 +      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.537 +      is insufficient.
   2.538 +     </p>
   2.539 +
   2.540 +      <section>
   2.541 +         <h3>Dependencies</h3>
   2.542 +
   2.543 +         This specification relies on several other underlying specifications.
   2.544 +
   2.545 +         <dl>
   2.546 +            <dt>HTML</dt>
   2.547 +            <dd>Many fundamental concepts from HTML are used by this specification. [[!HTML5]]</dd>
   2.548 +            <dt>WebIDL</dt>
   2.549 +            <dd>The IDL blocks in this specification use the semantics of the WebIDL specification. [[!WEBIDL]]</dd>
   2.550 +         </dl>
   2.551 +      </section>
   2.552 +    </section>
   2.553 +
   2.554 +    <section>
   2.555 +      <h3>Terminology</h3>
   2.556 +
   2.557 +      <p>
   2.558 +         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.559 +      </p>
   2.560 +
   2.561 +      <p>
   2.562 +         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
   2.563 +         other <code>Node</code> objects as defined in the DOM Core specifications. [[!DOM-CORE]]
   2.564 +      </p>
   2.565 +
   2.566 +      <p>
   2.567 +         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.568 +      </p>
   2.569 +
   2.570 +      <p>
   2.571 +        A <dfn>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.572 +      </p>
   2.573 +
   2.574 +      <p>
   2.575 +        A <a>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>list of available service records</a> according to the algorithms defined in this specification.
   2.576 +      </p>
   2.577 +    </section>
   2.578 +
   2.579 +    <section>
   2.580 +     <h2>Requesting networked services</h2>
   2.581 +
   2.582 +
   2.583 +<pre class="widl">[Supplemental, NoInterfaceObject]
   2.584 +interface <dfn id="navigatornetworkservice">NavigatorNetworkService</dfn> {
   2.585 +  // Obtain a Local-networked Service
   2.586 +  void <a href="#dom-navigator-getnetworkservices">getNetworkServices</a>( in any type,
   2.587 +                           in <a href="#navigatornetworkservicesuccesscallback">NavigatorNetworkServiceSuccessCallback</a> successCallback,
   2.588 +                           in optional <a href="#navigatornetworkserviceerrorcallback">NavigatorNetworkServiceErrorCallback</a> errorCallback );
   2.589 +};
   2.590 +<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.591 +
   2.592 +[Callback=FunctionOnly, NoInterfaceObject]
   2.593 +interface <dfn id="navigatornetworkservicesuccesscallback">NavigatorNetworkServiceSuccessCallback</dfn> {
   2.594 +  void handleEvent( in <a href="#networkservices">NetworkServices</a> services );
   2.595 +};
   2.596 +
   2.597 +[NoInterfaceObject]
   2.598 +interface <dfn id="navigatornetworkserviceerror">NavigatorNetworkServiceError</dfn> {
   2.599 +  const unsigned short <a href="#dom-navigatornetworkserviceerror-permission_denied">PERMISSION_DENIED_ERR</a> = 1;
   2.600 +  const unsigned short <a href="#dom-navigatornetworkserviceerror-unknown_type_prefix">UNKNOWN_TYPE_PREFIX_ERR</a> = 2;
   2.601 +  readonly attribute unsigned short <a href="#dom-navigatornetworkserviceerror-code">code</a>;
   2.602 +};
   2.603 +
   2.604 +[Callback=FunctionOnly, NoInterfaceObject]
   2.605 +interface <dfn id="navigatornetworkserviceerrorcallback">NavigatorNetworkServiceErrorCallback</dfn> {
   2.606 +  void handleEvent( in <a href="#navigatornetworkserviceerror">NavigatorNetworkServiceError</a> error );
   2.607 +};
   2.608 +</pre>
   2.609 +
   2.610 +  <section>
   2.611 +   <h2>Methods</h2>
   2.612 +
   2.613 +      <dl class="domintro">
   2.614 +        <dt>
   2.615 +          <var title="">window</var>
   2.616 +           .
   2.617 +          <code title="dom-navigator">
   2.618 +            <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/timers.html#navigator">navigator</a>
   2.619 +          </code>
   2.620 +           .
   2.621 +          <code title="dom-navigator-getNetworkServices">
   2.622 +            <a href="#dom-navigator-getnetworkservices">getNetworkServices</a>
   2.623 +          </code>
   2.624 +          (
   2.625 +          <var title="">type</var>
   2.626 +          ,
   2.627 +          <var title="">successCallback</var>
   2.628 +           [,
   2.629 +          <var title="">errorCallback</var>
   2.630 +           ] )
   2.631 +        </dt>
   2.632 +        <dd>
   2.633 +          <p>Prompts the user to select one or more discovered network services that have advertised support for the requested service type.</p>
   2.634 +          <p>
   2.635 +            The
   2.636 +            <var title="">type</var>
   2.637 +             argument contains one or more <a>valid service type</a> tokens that the web page would like to interact with.
   2.638 +          </p>
   2.639 +          <p>
   2.640 +            If the user accepts, the
   2.641 +            <var title="">successCallback</var>
   2.642 +             is
   2.643 +          invoked, with one or more
   2.644 +            <code>
   2.645 +              <a href="#networkservice"><code>NetworkService</code></a>
   2.646 +            </code>
   2.647 +             objects as
   2.648 +          its argument.
   2.649 +          </p>
   2.650 +          <p>
   2.651 +            If the user declines, the
   2.652 +            <var title="">errorCallback</var>
   2.653 +             (if
   2.654 +          any) is invoked.
   2.655 +          </p>
   2.656 +        </dd>
   2.657 +      </dl>
   2.658 +
   2.659 +       <div>
   2.660 +          <p>
   2.661 +            When the <dfn id="dom-navigator-getnetworkservices" title="dom-navigator-getnetworkservices"><code>getNetworkServices(type, successCallback[, errorCallback])</code></dfn> method is called, the <a>user agent</a> MUST run the following steps:
   2.662 +          </p>
   2.663 +
   2.664 +          <ol class="rule">
   2.665 +            <li>
   2.666 +               If <var>successCallback</var> is empty or is not an object of type <code>Function</code> then the <a>user agent</a> MUST abort these steps.
   2.667 +            </li>
   2.668 +
   2.669 +            <li>
   2.670 +              Let <var>requested control types</var> be initially set to an empty array.
   2.671 +            </li>
   2.672 +
   2.673 +            <li>
   2.674 +               If <var>type</var> is an array consisting of one or more <a>valid service type</a> tokens, then let <var>requested control types</var> by the value of <var>type</var>, removing any non-<a>valid service type</a> tokens from the resulting array.
   2.675 +            </li>
   2.676 +
   2.677 +            <li>
   2.678 +               If <var>type</var> is a string consisting of one <a>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.679 +            </li>
   2.680 +
   2.681 +            <li>
   2.682 +               If <var>requested control types</var> is an array that contains at least one or more <a title="valid service type">valid service type</a> tokens then continue to the step labeled <em>process</em> below. Otherwise, the <a>user agent</a> MUST <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.683 +                 <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 2
   2.684 +                  (<a href="#dom-navigatornetworkserviceerror-unknown_type_prefix"><code>UNKNOWN_TYPE_PREFIX_ERR</code></a>) as its argument,
   2.685 +                   abort any remaining steps and return.
   2.686 +            </li>
   2.687 +
   2.688 +            <li>
   2.689 +               <em>Process</em>: Let <var>services found</var> be an empty array.
   2.690 +            </li>
   2.691 +
   2.692 +            <li>
   2.693 +               For each <var>available service</var> in the <a>list of available service records</a> run the following steps:
   2.694 +               <ol class="rule">
   2.695 +                  <li>
   2.696 +                    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.697 +                  </li>
   2.698 +                  <li>
   2.699 +                     Continue at the next <var>available service</var>.
   2.700 +                  </li>
   2.701 +                  <li>
   2.702 +                     <em>Attach</em>: If <var>matched service</var> is not empty then run the following steps:
   2.703 +
   2.704 +                     <ol class="rule">
   2.705 +                        <li>
   2.706 +                           Let <var>new service object</var> be a new <a href="#networkservice"><code>NetworkService</code></a> object, mapping the parameters of
   2.707 +                     <var>matched service</var> to this new object where possible.
   2.708 +                        </li>
   2.709 +                        <li>
   2.710 +                           Append <var>new service object</var> to the <var>services found</var> array.
   2.711 +                        </li>
   2.712 +                     </ol>
   2.713 +                  </li>
   2.714 +               </ol>
   2.715 +            </li>
   2.716 +
   2.717 +            <li>
   2.718 +               If <var>services found</var> is an empty array, then the <a>user agent</a> MUST <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.719 +                 <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 1
   2.720 +                 (<a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a>) as its argument, abort any remaining steps and return.
   2.721 +            </li>
   2.722 +
   2.723 +            <li>
   2.724 +               Return, and run the remaining steps asynchronously.
   2.725 +            </li>
   2.726 +
   2.727 +            <li>
   2.728 +               Optionally, e.g. based on a previously-established user preference, for security reasons, or due to platform limitations, the <a>user agent</a> MAY <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.729 +                 <a href="#dom-navigatornetworkserviceerror-code"><code>code</code></a> attribute has the numeric value 1
   2.730 +                 (<a href="#dom-navigatornetworkserviceerror-permission_denied"><code>PERMISSION_DENIED_ERR</code></a>) as its argument, abort any remaining steps and return.
   2.731 +            </li>
   2.732 +
   2.733 +            <li>
   2.734 +                  The <a>user agent</a> MUST prompt the user in a user-agent-specific manner for permission to provide the
   2.735 +                  <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/browsers.html#entry-script" class="externalDFN">entry script</a>'s
   2.736 +                  <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.737 +                  <a href="#networkservice"><code>NetworkService</code></a> objects representing the user-authorized subset of <var>services found</var>.
   2.738 +