validity errors
authorRobin Berjon <robin@berjon.com>
Fri, 03 Aug 2012 15:58:23 +0200
changeset 185ef42cb5f9a60
parent 184 4641c9ec1d26
child 186 2993b8706dd0
validity errors
discovery-api/FPWD.html
discovery-api/Overview.src.html
discovery-api/js/core/base-runner.js
discovery-api/js/core/css/respec2.css
discovery-api/js/core/data-include.js
discovery-api/js/core/data-transform.js
discovery-api/js/core/default-root-attr.js
discovery-api/js/core/dfn.js
discovery-api/js/core/difftool.js
discovery-api/js/core/examples.js
discovery-api/js/core/figure.js
discovery-api/js/core/inlines.js
discovery-api/js/core/rdfa.js
discovery-api/js/core/remove-respec.js
discovery-api/js/core/structure.js
discovery-api/js/core/style.js
discovery-api/js/core/templates/webidl.html
discovery-api/js/core/tt.js
discovery-api/js/core/utils.js
discovery-api/js/core/webidl.js
discovery-api/js/local-proxy.js
discovery-api/js/profiles/w3c-common-loader.js
discovery-api/js/profiles/w3c-common.js
discovery-api/js/require.js
discovery-api/js/robineko/add-container.js
discovery-api/js/robineko/css/base.css
discovery-api/js/robineko/headers.js
discovery-api/js/robineko/profile-report.js
discovery-api/js/robineko/style.js
discovery-api/js/robineko/templates/headers.html
discovery-api/js/sh_min.js
discovery-api/js/test/basic.js
discovery-api/js/test/basic2.js
discovery-api/js/w3c/bibref.js
discovery-api/js/w3c/bibref/ABA-DSIG-GUIDELINES.js
discovery-api/js/w3c/bibref/ABC.js
discovery-api/js/w3c/bibref/ABNF.js
discovery-api/js/w3c/bibref/ACCESS-CONTROL.js
discovery-api/js/w3c/bibref/ACDI.js
discovery-api/js/w3c/bibref/ACSS.js
discovery-api/js/w3c/bibref/AD-INDUSTRY.js
discovery-api/js/w3c/bibref/AERT.js
discovery-api/js/w3c/bibref/AES-WRAP-PAD.js
discovery-api/js/w3c/bibref/AES-WRAP.js
discovery-api/js/w3c/bibref/AES.js
discovery-api/js/w3c/bibref/AGBDL.js
discovery-api/js/w3c/bibref/ANSI-X9-44-2007.js
discovery-api/js/w3c/bibref/ARABIC-MATH.js
discovery-api/js/w3c/bibref/ARABIC-TYPO.js
discovery-api/js/w3c/bibref/ATAG-WOMBAT.js
discovery-api/js/w3c/bibref/ATAG10-TECHS.js
discovery-api/js/w3c/bibref/ATAG10.js
discovery-api/js/w3c/bibref/ATAG20-TECHS.js
discovery-api/js/w3c/bibref/ATAG20.js
discovery-api/js/w3c/bibref/BACKPLANE.js
discovery-api/js/w3c/bibref/BECSS.js
discovery-api/js/w3c/bibref/BLOB.js
discovery-api/js/w3c/bibref/BONDI-ARCH-SECURITY-11.js
discovery-api/js/w3c/bibref/BONDI-FEATURES1-11.js
discovery-api/js/w3c/bibref/C14N-ISSUES.js
discovery-api/js/w3c/bibref/CALL-CONTROL-REQS.js
discovery-api/js/w3c/bibref/CC-ABOUT.js
discovery-api/js/w3c/bibref/CC-CHOOSE.js
discovery-api/js/w3c/bibref/CCPP-COORDINATION.js
discovery-api/js/w3c/bibref/CCPP-RA.js
discovery-api/js/w3c/bibref/CCPP-STRUCT-VOCAB2.js
discovery-api/js/w3c/bibref/CCPP-TA.js
discovery-api/js/w3c/bibref/CCPP-TRUST.js
discovery-api/js/w3c/bibref/CCPP.js
discovery-api/js/w3c/bibref/CCXML.js
discovery-api/js/w3c/bibref/CDFREQS.js
discovery-api/js/w3c/bibref/CDR.js
discovery-api/js/w3c/bibref/CDRREQS.js
discovery-api/js/w3c/bibref/CGM.js
discovery-api/js/w3c/bibref/CHARMOD-NORM.js
discovery-api/js/w3c/bibref/CHARMOD-RESID.js
discovery-api/js/w3c/bibref/CHARMOD.js
discovery-api/js/w3c/bibref/CHARREQ.js
discovery-api/js/w3c/bibref/CHARSETS.js
discovery-api/js/w3c/bibref/CLIPBOARD-APIS.js
discovery-api/js/w3c/bibref/CMS-Algorithms.js
discovery-api/js/w3c/bibref/CMS-WRAP.js
discovery-api/js/w3c/bibref/COLORIMETRY.js
discovery-api/js/w3c/bibref/CONTACTS-API.js
discovery-api/js/w3c/bibref/CONTACTS-WRITER-API.js
discovery-api/js/w3c/bibref/CONTENT-IN-RDF.js
discovery-api/js/w3c/bibref/COOKIES.js
discovery-api/js/w3c/bibref/COOLURIS.js
discovery-api/js/w3c/bibref/CORE-DEVICE.js
discovery-api/js/w3c/bibref/CORS.js
discovery-api/js/w3c/bibref/CPC-REQ.js
discovery-api/js/w3c/bibref/CSELECTION-PRIMER.js
discovery-api/js/w3c/bibref/CSELECTION-XAF.js
discovery-api/js/w3c/bibref/CSELECTION.js
discovery-api/js/w3c/bibref/CSS-MOBILE.js
discovery-api/js/w3c/bibref/CSS-POTENTIAL.js
discovery-api/js/w3c/bibref/CSS-PRINT.js
discovery-api/js/w3c/bibref/CSS-TV.js
discovery-api/js/w3c/bibref/CSS1.js
discovery-api/js/w3c/bibref/CSS2.js
discovery-api/js/w3c/bibref/CSS21.js
discovery-api/js/w3c/bibref/CSS3-2D-TRANSFORMS.js
discovery-api/js/w3c/bibref/CSS3-3D-TRANSFORMS.js
discovery-api/js/w3c/bibref/CSS3-ANIMATIONS.js
discovery-api/js/w3c/bibref/CSS3-HYPERLINKS.js
discovery-api/js/w3c/bibref/CSS3-MARQUEE.js
discovery-api/js/w3c/bibref/CSS3-PRESLEV.js
discovery-api/js/w3c/bibref/CSS3-READER.js
discovery-api/js/w3c/bibref/CSS3-TRANSITIONS.js
discovery-api/js/w3c/bibref/CSS3-WEBFONTS.js
discovery-api/js/w3c/bibref/CSS3BG.js
discovery-api/js/w3c/bibref/CSS3BORDER.js
discovery-api/js/w3c/bibref/CSS3BOX.js
discovery-api/js/w3c/bibref/CSS3CASCADE.js
discovery-api/js/w3c/bibref/CSS3COL.js
discovery-api/js/w3c/bibref/CSS3COLOR.js
discovery-api/js/w3c/bibref/CSS3FONT.js
discovery-api/js/w3c/bibref/CSS3GCPM.js
discovery-api/js/w3c/bibref/CSS3GENCON.js
discovery-api/js/w3c/bibref/CSS3GRID.js
discovery-api/js/w3c/bibref/CSS3INTRO.js
discovery-api/js/w3c/bibref/CSS3LAYOUT.js
discovery-api/js/w3c/bibref/CSS3LINE.js
discovery-api/js/w3c/bibref/CSS3LIST.js
discovery-api/js/w3c/bibref/CSS3MARQUEE.js
discovery-api/js/w3c/bibref/CSS3NAMESPACE.js
discovery-api/js/w3c/bibref/CSS3PAGE.js
discovery-api/js/w3c/bibref/CSS3POS.js
discovery-api/js/w3c/bibref/CSS3RUBY.js
discovery-api/js/w3c/bibref/CSS3SPEECH.js
discovery-api/js/w3c/bibref/CSS3SYN.js
discovery-api/js/w3c/bibref/CSS3TBL.js
discovery-api/js/w3c/bibref/CSS3TEXT.js
discovery-api/js/w3c/bibref/CSS3TEXTLAYOUT.js
discovery-api/js/w3c/bibref/CSS3UI.js
discovery-api/js/w3c/bibref/CSS3VAL.js
discovery-api/js/w3c/bibref/CSS3WRITINGMODES.js
discovery-api/js/w3c/bibref/CSSBEIJING.js
discovery-api/js/w3c/bibref/CSSOM-VIEW.js
discovery-api/js/w3c/bibref/CSSSTYLEATTR.js
discovery-api/js/w3c/bibref/CT-GUIDELINES.js
discovery-api/js/w3c/bibref/CT-LANDSCAPE.js
discovery-api/js/w3c/bibref/CURIE.js
discovery-api/js/w3c/bibref/CVE-2009-0217.js
discovery-api/js/w3c/bibref/CX.js
discovery-api/js/w3c/bibref/Coloring-RDF.js
discovery-api/js/w3c/bibref/Context-SW.js
discovery-api/js/w3c/bibref/DAHUT.js
discovery-api/js/w3c/bibref/DAP-ACCESS-REQS.js
discovery-api/js/w3c/bibref/DAP-POLICY-FRAMEWORK.js
discovery-api/js/w3c/bibref/DAP-PRIVACY-REQS.js
discovery-api/js/w3c/bibref/DAP-REQS.js
discovery-api/js/w3c/bibref/DAP-XACML-POLICY-PROFILE.js
discovery-api/js/w3c/bibref/DC11.js
discovery-api/js/w3c/bibref/DCONTOLOGY.js
discovery-api/js/w3c/bibref/DD-ECOSYSTEM.js
discovery-api/js/w3c/bibref/DD-LANDSCAPE.js
discovery-api/js/w3c/bibref/DD-STRUCTURES.js
discovery-api/js/w3c/bibref/DDR-CORE-VOCABULARY.js
discovery-api/js/w3c/bibref/DDR-REQUIREMENTS.js
discovery-api/js/w3c/bibref/DDR-SIMPLE-API.js
discovery-api/js/w3c/bibref/DES.js
discovery-api/js/w3c/bibref/DFAUI.js
discovery-api/js/w3c/bibref/DI-ATDI.js
discovery-api/js/w3c/bibref/DI-DCO.js
discovery-api/js/w3c/bibref/DI-GLOSS.js
discovery-api/js/w3c/bibref/DI-PRINC.js
discovery-api/js/w3c/bibref/DIAL-PRIMER.js
discovery-api/js/w3c/bibref/DIAL.js
discovery-api/js/w3c/bibref/DIG2000.js
discovery-api/js/w3c/bibref/DNS-SD.js
discovery-api/js/w3c/bibref/DOM-BINDINGS.js
discovery-api/js/w3c/bibref/DOM-CORE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-1-2e.js
discovery-api/js/w3c/bibref/DOM-LEVEL-1.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-CORE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-EVENTS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-HTML.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-STYLE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-TRAVERSAL-RANGE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-2-VIEWS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-AS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-CORE.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-EVENTS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-LS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-VAL.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-VIEWS.js
discovery-api/js/w3c/bibref/DOM-LEVEL-3-XPATH.js
discovery-api/js/w3c/bibref/DOM-REQUIREMENTS.js
discovery-api/js/w3c/bibref/DPF.js
discovery-api/js/w3c/bibref/DSIG-LABEL.js
discovery-api/js/w3c/bibref/DSIG-USAGE.js
discovery-api/js/w3c/bibref/DSS.js
discovery-api/js/w3c/bibref/Davis.js
discovery-api/js/w3c/bibref/EARL10-REQUIREMENTS.js
discovery-api/js/w3c/bibref/EARL10-SCHEMA.js
discovery-api/js/w3c/bibref/EBXML-MSG.js
discovery-api/js/w3c/bibref/EC-RELATED-ACTIVITIES.js
discovery-api/js/w3c/bibref/ECC-ALGS.js
discovery-api/js/w3c/bibref/ECMA-262.js
discovery-api/js/w3c/bibref/EGOV-IMPROVING.js
discovery-api/js/w3c/bibref/ELEMENTTRAVERSAL.js
discovery-api/js/w3c/bibref/ELEMTYPO.js
discovery-api/js/w3c/bibref/EMAIL.js
discovery-api/js/w3c/bibref/EMMA.js
discovery-api/js/w3c/bibref/EMMAREQS.js
discovery-api/js/w3c/bibref/ESDH.js
discovery-api/js/w3c/bibref/EVENTSOURCE.js
discovery-api/js/w3c/bibref/EXI-BEST-PRACTICES.js
discovery-api/js/w3c/bibref/EXI-EVALUATION.js
discovery-api/js/w3c/bibref/EXI-IMPACTS.js
discovery-api/js/w3c/bibref/EXI-MEASUREMENTS.js
discovery-api/js/w3c/bibref/EXI-PRIMER.js
discovery-api/js/w3c/bibref/EXI.js
discovery-api/js/w3c/bibref/FILE-API.js
discovery-api/js/w3c/bibref/FILE-UPLOAD.js
discovery-api/js/w3c/bibref/FILE-WRITER.js
discovery-api/js/w3c/bibref/FIN-PRIV-NOTICE.js
discovery-api/js/w3c/bibref/FIPS-180-3.js
discovery-api/js/w3c/bibref/FIPS-186-3.js
discovery-api/js/w3c/bibref/FIR.js
discovery-api/js/w3c/bibref/FLEX.js
discovery-api/js/w3c/bibref/FLEXBOX.js
discovery-api/js/w3c/bibref/GEOLOCATION-API.js
discovery-api/js/w3c/bibref/GEOPRIV-ARCH.js
discovery-api/js/w3c/bibref/GRDDL-PRIMER.js
discovery-api/js/w3c/bibref/GRDDL-SCENARIOS.js
discovery-api/js/w3c/bibref/GRDDL-TESTS.js
discovery-api/js/w3c/bibref/GRDDL.js
discovery-api/js/w3c/bibref/HASH-IN-URI.js
discovery-api/js/w3c/bibref/HCLS-KB.js
discovery-api/js/w3c/bibref/HCLS-SENSELAB.js
discovery-api/js/w3c/bibref/HLINK.js
discovery-api/js/w3c/bibref/HMAC.js
discovery-api/js/w3c/bibref/HMRMC.js
discovery-api/js/w3c/bibref/HSL.js
discovery-api/js/w3c/bibref/HTML-DESIGN-PRINCIPLES.js
discovery-api/js/w3c/bibref/HTML-DEVICE.js
discovery-api/js/w3c/bibref/HTML-LAN.js
discovery-api/js/w3c/bibref/HTML32.js
discovery-api/js/w3c/bibref/HTML40-MOBILE.js
discovery-api/js/w3c/bibref/HTML40.js
discovery-api/js/w3c/bibref/HTML401.js
discovery-api/js/w3c/bibref/HTML5-DIFF.js
discovery-api/js/w3c/bibref/HTML5-PUBNOTES.js
discovery-api/js/w3c/bibref/HTML5.js
discovery-api/js/w3c/bibref/HTMLICCPROF.js
discovery-api/js/w3c/bibref/HTMLMEDIACAPTURE.js
discovery-api/js/w3c/bibref/HTTP-IN-RDF.js
discovery-api/js/w3c/bibref/HTTP-NG-TESTBED.js
discovery-api/js/w3c/bibref/HTTP-TLS.js
discovery-api/js/w3c/bibref/HTTP11.js
discovery-api/js/w3c/bibref/HunterZhan.js
discovery-api/js/w3c/bibref/I18N-GUIDE-FRAMEWORK.js
discovery-api/js/w3c/bibref/I18N-HTML-TECH-BIDI.js
discovery-api/js/w3c/bibref/I18N-HTML-TECH-CHAR.js
discovery-api/js/w3c/bibref/I18N-HTML-TECH-LANG.js
discovery-api/js/w3c/bibref/ICC32.js
discovery-api/js/w3c/bibref/ICC42.js
discovery-api/js/w3c/bibref/ID-MGM.js
discovery-api/js/w3c/bibref/IEEE1363.js
discovery-api/js/w3c/bibref/IEEE802-3.js
discovery-api/js/w3c/bibref/ILU-REQUESTOR.js
discovery-api/js/w3c/bibref/IMAGEMAP.js
discovery-api/js/w3c/bibref/INKML.js
discovery-api/js/w3c/bibref/INKREQS.js
discovery-api/js/w3c/bibref/IRI.js
discovery-api/js/w3c/bibref/ISO10646.js
discovery-api/js/w3c/bibref/ISO15924.js
discovery-api/js/w3c/bibref/ISO18033-2.js
discovery-api/js/w3c/bibref/ISO8601.js
discovery-api/js/w3c/bibref/ISO8879.js
discovery-api/js/w3c/bibref/ISO9070.js
discovery-api/js/w3c/bibref/ITS.js
discovery-api/js/w3c/bibref/ITSREQ.js
discovery-api/js/w3c/bibref/ITUMCC.js
discovery-api/js/w3c/bibref/ITUMNC.js
discovery-api/js/w3c/bibref/JIGSAW.js
discovery-api/js/w3c/bibref/JIS4051.js
discovery-api/js/w3c/bibref/JISX4051.js
discovery-api/js/w3c/bibref/JLREQ.js
discovery-api/js/w3c/bibref/JPEG.js
discovery-api/js/w3c/bibref/JPEG2000.js
discovery-api/js/w3c/bibref/JSON-LD.js
discovery-api/js/w3c/bibref/KUIL.js
discovery-api/js/w3c/bibref/LANGCULTTYPE.js
discovery-api/js/w3c/bibref/LBASE.js
discovery-api/js/w3c/bibref/LDAP-DN.js
discovery-api/js/w3c/bibref/LEIRI.js
discovery-api/js/w3c/bibref/LEXICON-REQS.js
discovery-api/js/w3c/bibref/LIC-PRIV.js
discovery-api/js/w3c/bibref/LTLI.js
discovery-api/js/w3c/bibref/MATHML-BVAR.js
discovery-api/js/w3c/bibref/MATHML-FOR-CSS.js
discovery-api/js/w3c/bibref/MATHML-TYPES.js
discovery-api/js/w3c/bibref/MATHML-UNITS.js
discovery-api/js/w3c/bibref/MATHML.js
discovery-api/js/w3c/bibref/MATHML2.js
discovery-api/js/w3c/bibref/MATHML3.js
discovery-api/js/w3c/bibref/MCINTOSH-WRAP.js
discovery-api/js/w3c/bibref/MDNS.js
discovery-api/js/w3c/bibref/MEDIA-ANNOT-REQS.js
discovery-api/js/w3c/bibref/MEDIAACCESSEVENTS.js
discovery-api/js/w3c/bibref/MEDIACAPTURE-API.js
discovery-api/js/w3c/bibref/MEDIAONT-API.js
discovery-api/js/w3c/bibref/MEDIAQ.js
discovery-api/js/w3c/bibref/MESSAGING-API.js
discovery-api/js/w3c/bibref/MICROFORMATS.js
discovery-api/js/w3c/bibref/MIME-REG.js
discovery-api/js/w3c/bibref/MMI-ARCH.js
discovery-api/js/w3c/bibref/MMI-AUTH.js
discovery-api/js/w3c/bibref/MMI-DEV-FEEDBACK.js
discovery-api/js/w3c/bibref/MMI-FRAMEWORK.js
discovery-api/js/w3c/bibref/MMI-REQS.js
discovery-api/js/w3c/bibref/MMI-SUGGESTIONS.js
discovery-api/js/w3c/bibref/MMI-USE-CASES.js
discovery-api/js/w3c/bibref/MOBILE-BP-SCOPE.js
discovery-api/js/w3c/bibref/MOBILE-BP.js
discovery-api/js/w3c/bibref/MOBILEOK-BASIC10-TESTS.js
discovery-api/js/w3c/bibref/MOBILEOK.js
discovery-api/js/w3c/bibref/MODALITY-INTERFACE.js
discovery-api/js/w3c/bibref/MOZ-ICONS.js
discovery-api/js/w3c/bibref/MULTIMODAL-REQS.js
discovery-api/js/w3c/bibref/MWABP.js
discovery-api/js/w3c/bibref/MWBP-WCAG.js
discovery-api/js/w3c/bibref/N3.js
discovery-api/js/w3c/bibref/NAMED-GRAPHS.js
discovery-api/js/w3c/bibref/NAMES.js
discovery-api/js/w3c/bibref/NAMESPACESTATE.js
discovery-api/js/w3c/bibref/NAVIGATOR.js
discovery-api/js/w3c/bibref/NFC.js
discovery-api/js/w3c/bibref/NGRAM-SPEC.js
discovery-api/js/w3c/bibref/NL-SPEC.js
discovery-api/js/w3c/bibref/NOTE-CCPP.js
discovery-api/js/w3c/bibref/OASIS-TAG.js
discovery-api/js/w3c/bibref/OCSP.js
discovery-api/js/w3c/bibref/OEB101.js
discovery-api/js/w3c/bibref/OFFLINE-WEBAPPS.js
discovery-api/js/w3c/bibref/OMA-DM.js
discovery-api/js/w3c/bibref/OWL-FEATURES.js
discovery-api/js/w3c/bibref/OWL-GUIDE.js
discovery-api/js/w3c/bibref/OWL-PARSING.js
discovery-api/js/w3c/bibref/OWL-REF.js
discovery-api/js/w3c/bibref/OWL-SEMANTICS.js
discovery-api/js/w3c/bibref/OWL-TEST.js
discovery-api/js/w3c/bibref/OWL-TIME.js
discovery-api/js/w3c/bibref/OWL-XMLSYNTAX.js
discovery-api/js/w3c/bibref/OWL2-CONFORMANCE.js
discovery-api/js/w3c/bibref/OWL2-DIRECT-SEMANTICS.js
discovery-api/js/w3c/bibref/OWL2-MANCHESTER-SYNTAX.js
discovery-api/js/w3c/bibref/OWL2-MAPPING-TO-RDF.js
discovery-api/js/w3c/bibref/OWL2-NEW-FEATURES.js
discovery-api/js/w3c/bibref/OWL2-OVERVIEW.js
discovery-api/js/w3c/bibref/OWL2-PRIMER.js
discovery-api/js/w3c/bibref/OWL2-PROFILES.js
discovery-api/js/w3c/bibref/OWL2-QUICK-REFERENCE.js
discovery-api/js/w3c/bibref/OWL2-RDF-BASED-SEMANTICS.js
discovery-api/js/w3c/bibref/OWL2-SYNTAX.js
discovery-api/js/w3c/bibref/OWL2-XML-SERIALIZATION.js
discovery-api/js/w3c/bibref/P3P-PREFERENCES.js
discovery-api/js/w3c/bibref/P3P-RDFSCHEMA.js
discovery-api/js/w3c/bibref/P3P1.0.js
discovery-api/js/w3c/bibref/P3P10-PRINCIPLES.js
discovery-api/js/w3c/bibref/P3P10-PROTOCOLS.js
discovery-api/js/w3c/bibref/P3P11.js
discovery-api/js/w3c/bibref/P3PDEPLOYMENT.js
discovery-api/js/w3c/bibref/PGP.js
discovery-api/js/w3c/bibref/PICS-LABELS.js
discovery-api/js/w3c/bibref/PICS-SERVICES.js
discovery-api/js/w3c/bibref/PICSRULES.js
discovery-api/js/w3c/bibref/PKCS1.js
discovery-api/js/w3c/bibref/PKCS5.js
discovery-api/js/w3c/bibref/PKCS5Amd1.js
discovery-api/js/w3c/bibref/PNG2e.js
discovery-api/js/w3c/bibref/POCO-SCHEMA.js
discovery-api/js/w3c/bibref/POINTERS-IN-RDF.js
discovery-api/js/w3c/bibref/POSITIONING.js
discovery-api/js/w3c/bibref/POWDER-DR.js
discovery-api/js/w3c/bibref/POWDER-FORMAL.js
discovery-api/js/w3c/bibref/POWDER-GROUPING.js
discovery-api/js/w3c/bibref/POWDER-PRIMER.js
discovery-api/js/w3c/bibref/POWDER-TEST.js
discovery-api/js/w3c/bibref/POWDER-USE-CASES.js
discovery-api/js/w3c/bibref/POWDER-VOC.js
discovery-api/js/w3c/bibref/POWDER-XSD.js
discovery-api/js/w3c/bibref/PRINT.js
discovery-api/js/w3c/bibref/PRIV-ICONS.js
discovery-api/js/w3c/bibref/PRIV-ICONSET.js
discovery-api/js/w3c/bibref/PRIV-LABEL.js
discovery-api/js/w3c/bibref/PRIVACY-ISSUES-GEO.js
discovery-api/js/w3c/bibref/PROC-MODEL-REQ.js
discovery-api/js/w3c/bibref/PROGRESS-EVENTS.js
discovery-api/js/w3c/bibref/PRONUNCIATION-LEXICON.js
discovery-api/js/w3c/bibref/PROV-QUERY.js
discovery-api/js/w3c/bibref/PROV-RDF-S.js
discovery-api/js/w3c/bibref/PWGMSN.js
discovery-api/js/w3c/bibref/QA-HANDBOOK.js
discovery-api/js/w3c/bibref/QAFRAME-OPS-EXTECH.js
discovery-api/js/w3c/bibref/QAFRAME-SPEC.js
discovery-api/js/w3c/bibref/QAFRAME-TEST.js
discovery-api/js/w3c/bibref/QNAMES.js
discovery-api/js/w3c/bibref/RANDOM.js
discovery-api/js/w3c/bibref/RDF-CONCEPTS.js
discovery-api/js/w3c/bibref/RDF-DAWG-UC.js
discovery-api/js/w3c/bibref/RDF-MT.js
discovery-api/js/w3c/bibref/RDF-PRIMER.js
discovery-api/js/w3c/bibref/RDF-SCHEMA.js
discovery-api/js/w3c/bibref/RDF-SPARQL-JSON-RES.js
discovery-api/js/w3c/bibref/RDF-SPARQL-PROTOCOL.js
discovery-api/js/w3c/bibref/RDF-SPARQL-QUERY.js
discovery-api/js/w3c/bibref/RDF-SPARQL-XMLRES.js
discovery-api/js/w3c/bibref/RDF-SYNTAX-GRAMMAR.js
discovery-api/js/w3c/bibref/RDF-SYNTAX.js
discovery-api/js/w3c/bibref/RDF-TESTCASES.js
discovery-api/js/w3c/bibref/RDF-UML.js
discovery-api/js/w3c/bibref/RDFA-CORE.js
discovery-api/js/w3c/bibref/RDFA-PRIMER.js
discovery-api/js/w3c/bibref/RDFA-SYNTAX.js
discovery-api/js/w3c/bibref/RDFCAL.js
discovery-api/js/w3c/bibref/RDFTM-SURVEY.js
discovery-api/js/w3c/bibref/RELAXNG-SCHEMA.js
discovery-api/js/w3c/bibref/REUSABLE-DIALOG-REQS.js
discovery-api/js/w3c/bibref/REX-REQS.js
discovery-api/js/w3c/bibref/REX.js
discovery-api/js/w3c/bibref/RFC1034.js
discovery-api/js/w3c/bibref/RFC1738.js
discovery-api/js/w3c/bibref/RFC1808.js
discovery-api/js/w3c/bibref/RFC2045.js
discovery-api/js/w3c/bibref/RFC2046.js
discovery-api/js/w3c/bibref/RFC2119.js
discovery-api/js/w3c/bibref/RFC2231.js
discovery-api/js/w3c/bibref/RFC2318.js
discovery-api/js/w3c/bibref/RFC2397.js
discovery-api/js/w3c/bibref/RFC2426.js
discovery-api/js/w3c/bibref/RFC2531.js
discovery-api/js/w3c/bibref/RFC2533.js
discovery-api/js/w3c/bibref/RFC2534.js
discovery-api/js/w3c/bibref/RFC2854.js
discovery-api/js/w3c/bibref/RFC2978.js
discovery-api/js/w3c/bibref/RFC3161-PKIX-UPDATE-9.js
discovery-api/js/w3c/bibref/RFC3161.js
discovery-api/js/w3c/bibref/RFC3236.js
discovery-api/js/w3c/bibref/RFC3279.js
discovery-api/js/w3c/bibref/RFC3406.js
discovery-api/js/w3c/bibref/RFC3490.js
discovery-api/js/w3c/bibref/RFC3987.js
discovery-api/js/w3c/bibref/RFC4050.js
discovery-api/js/w3c/bibref/RFC4051.js
discovery-api/js/w3c/bibref/RFC4055.js
discovery-api/js/w3c/bibref/RFC4122.js
discovery-api/js/w3c/bibref/RFC4281.js
discovery-api/js/w3c/bibref/RFC4572.js
discovery-api/js/w3c/bibref/RFC4627.js
discovery-api/js/w3c/bibref/RFC4770.js
discovery-api/js/w3c/bibref/RFC4949.js
discovery-api/js/w3c/bibref/RFC5280.js
discovery-api/js/w3c/bibref/RFC5480.js
discovery-api/js/w3c/bibref/RFC5545.js
discovery-api/js/w3c/bibref/RIF-BLD.js
discovery-api/js/w3c/bibref/RIF-CORE.js
discovery-api/js/w3c/bibref/RIF-DTB.js
discovery-api/js/w3c/bibref/RIF-FLD.js
discovery-api/js/w3c/bibref/RIF-OVERVIEW.js
discovery-api/js/w3c/bibref/RIF-PRD.js
discovery-api/js/w3c/bibref/RIF-RDF-OWL.js
discovery-api/js/w3c/bibref/RIF-TEST.js
discovery-api/js/w3c/bibref/RIF-UCR.js
discovery-api/js/w3c/bibref/RIPEMD-160.js
discovery-api/js/w3c/bibref/RUBY.js
discovery-api/js/w3c/bibref/S6GROUP2.js
discovery-api/js/w3c/bibref/SAML2-CORE.js
discovery-api/js/w3c/bibref/SAWSDL-GUIDE.js
discovery-api/js/w3c/bibref/SAWSDL.js
discovery-api/js/w3c/bibref/SAX.js
discovery-api/js/w3c/bibref/SCHEMA-ARCH.js
discovery-api/js/w3c/bibref/SCXML.js
discovery-api/js/w3c/bibref/SECG1.js
discovery-api/js/w3c/bibref/SELECT.js
discovery-api/js/w3c/bibref/SELECTORS-API.js
discovery-api/js/w3c/bibref/SEMANTIC-INTERPRETATION.js
discovery-api/js/w3c/bibref/SGML-CATALOG.js
discovery-api/js/w3c/bibref/SGML-XML.js
discovery-api/js/w3c/bibref/SHA-1-Analysis.js
discovery-api/js/w3c/bibref/SHA-1-Collisions.js
discovery-api/js/w3c/bibref/SKOS-PRIMER.js
discovery-api/js/w3c/bibref/SKOS-REFERENCE.js
discovery-api/js/w3c/bibref/SKOS-UCR.js
discovery-api/js/w3c/bibref/SMIL-ANIMATION.js
discovery-api/js/w3c/bibref/SMIL10.js
discovery-api/js/w3c/bibref/SMIL2.js
discovery-api/js/w3c/bibref/SMIL20.js
discovery-api/js/w3c/bibref/SMIL3.js
discovery-api/js/w3c/bibref/SML-IF.js
discovery-api/js/w3c/bibref/SML.js
discovery-api/js/w3c/bibref/SOAP11-ROR-HTTPBINDING.js
discovery-api/js/w3c/bibref/SOAP12-AF.js
discovery-api/js/w3c/bibref/SOAP12-EMAIL.js
discovery-api/js/w3c/bibref/SOAP12-MTOM-POLICY.js
discovery-api/js/w3c/bibref/SOAP12-MTOM.js
discovery-api/js/w3c/bibref/SOAP12-N11N.js
discovery-api/js/w3c/bibref/SOAP12-OS-UCR.js
discovery-api/js/w3c/bibref/SOAP12-PART0.js
discovery-api/js/w3c/bibref/SOAP12-PART1.js
discovery-api/js/w3c/bibref/SOAP12-PART2.js
discovery-api/js/w3c/bibref/SOAP12-PART3.js
discovery-api/js/w3c/bibref/SOAP12-REP.js
discovery-api/js/w3c/bibref/SOAP12-TESTCOLLECTION.js
discovery-api/js/w3c/bibref/SOAPJMS.js
discovery-api/js/w3c/bibref/SP800-38D.js
discovery-api/js/w3c/bibref/SP800-56A.js
discovery-api/js/w3c/bibref/SP800-57.js
discovery-api/js/w3c/bibref/SPEC-VARIABILITY.js
discovery-api/js/w3c/bibref/SPEECH-GRAMMAR.js
discovery-api/js/w3c/bibref/SPEECH-SYNTHESIS.js
discovery-api/js/w3c/bibref/SPEECH-SYNTHESIS11.js
discovery-api/js/w3c/bibref/SPROT11.js
discovery-api/js/w3c/bibref/SRGB.js
discovery-api/js/w3c/bibref/SSML-SAYAS.js
discovery-api/js/w3c/bibref/SSML11REQS.js
discovery-api/js/w3c/bibref/SUS3.js
discovery-api/js/w3c/bibref/SVG10.js
discovery-api/js/w3c/bibref/SVG11.js
discovery-api/js/w3c/bibref/SVG12.js
discovery-api/js/w3c/bibref/SVG2REQS.js
discovery-api/js/w3c/bibref/SVGFILTER12.js
discovery-api/js/w3c/bibref/SVGFILTERPRIMER12.js
discovery-api/js/w3c/bibref/SVGFILTERREQS12.js
discovery-api/js/w3c/bibref/SVGMOBILE.js
discovery-api/js/w3c/bibref/SVGMOBILE12.js
discovery-api/js/w3c/bibref/SVGMOBILEREQS.js
discovery-api/js/w3c/bibref/SVGPRINT12.js
discovery-api/js/w3c/bibref/SVGPRINTPRIMER12.js
discovery-api/js/w3c/bibref/SVGPRINTREQS.js
discovery-api/js/w3c/bibref/SVGREQ.js
discovery-api/js/w3c/bibref/SVGTINY12.js
discovery-api/js/w3c/bibref/SVGTINY12REQS.js
discovery-api/js/w3c/bibref/SW-OOSD-PRIMER.js
discovery-api/js/w3c/bibref/SWBP-CLASSES-AS-VALUES.js
discovery-api/js/w3c/bibref/SWBP-N-ARYRELATIONS.js
discovery-api/js/w3c/bibref/SWBP-SKOS-CORE-GUIDE.js
discovery-api/js/w3c/bibref/SWBP-SKOS-CORE-SPEC.js
discovery-api/js/w3c/bibref/SWBP-SPECIFIED-VALUES.js
discovery-api/js/w3c/bibref/SWBP-THESAURUS-PUBGUIDE.js
discovery-api/js/w3c/bibref/SWBP-VOCAB-PUB.js
discovery-api/js/w3c/bibref/SWBP-XSCH-DATATYPES.js
discovery-api/js/w3c/bibref/SXBL.js
discovery-api/js/w3c/bibref/SXSWGRIDS.js
discovery-api/js/w3c/bibref/SYMM-MODULES.js
discovery-api/js/w3c/bibref/SYSINFOAPI.js
discovery-api/js/w3c/bibref/TAGLINK20030116.js
discovery-api/js/w3c/bibref/TEST-METADATA.js
discovery-api/js/w3c/bibref/THEGRID.js
discovery-api/js/w3c/bibref/TIMESHEETS.js
discovery-api/js/w3c/bibref/TIMEZONE.js
discovery-api/js/w3c/bibref/TRIPLEDES.js
discovery-api/js/w3c/bibref/TTAF1-DFXP.js
discovery-api/js/w3c/bibref/TTAF1-REQ.js
discovery-api/js/w3c/bibref/TURINGTEST.js
discovery-api/js/w3c/bibref/TURTLE.js
discovery-api/js/w3c/bibref/TVWEB-URI-REQUIREMENTS.js
discovery-api/js/w3c/bibref/TYPED-ARRAYS.js
discovery-api/js/w3c/bibref/Tobin.js
discovery-api/js/w3c/bibref/UAAG10-TECHS.js
discovery-api/js/w3c/bibref/UAAG10.js
discovery-api/js/w3c/bibref/UAAG20-REQUIREMENTS.js
discovery-api/js/w3c/bibref/UAAG20.js
discovery-api/js/w3c/bibref/UAX11.js
discovery-api/js/w3c/bibref/UAX14.js
discovery-api/js/w3c/bibref/UAX21.js
discovery-api/js/w3c/bibref/UAX24.js
discovery-api/js/w3c/bibref/UAX27.js
discovery-api/js/w3c/bibref/UAX29.js
discovery-api/js/w3c/bibref/UNDERSTANDING-WCAG20.js
discovery-api/js/w3c/bibref/UNICODE-XML.js
discovery-api/js/w3c/bibref/UNICODE.js
discovery-api/js/w3c/bibref/UNICODE310.js
discovery-api/js/w3c/bibref/UNICODE4.js
discovery-api/js/w3c/bibref/UNICODE5.js
discovery-api/js/w3c/bibref/UPNP.js
discovery-api/js/w3c/bibref/URI-CLARIFICATION.js
discovery-api/js/w3c/bibref/URI.js
discovery-api/js/w3c/bibref/URN-OID.js
discovery-api/js/w3c/bibref/URN.js
discovery-api/js/w3c/bibref/UTF-16.js
discovery-api/js/w3c/bibref/UTF-8.js
discovery-api/js/w3c/bibref/UTR24.js
discovery-api/js/w3c/bibref/VBI-REQS.js
discovery-api/js/w3c/bibref/VOICE-ARCHITECTURE.js
discovery-api/js/w3c/bibref/VOICE-DIALOG-REQS.js
discovery-api/js/w3c/bibref/VOICE-GRAMMAR-REQS.js
discovery-api/js/w3c/bibref/VOICE-INTRO.js
discovery-api/js/w3c/bibref/VOICE-NLU-REQS.js
discovery-api/js/w3c/bibref/VOICE-TTS-REQS.js
discovery-api/js/w3c/bibref/VOICE.js
discovery-api/js/w3c/bibref/VOICEXML20.js
discovery-api/js/w3c/bibref/VOICEXML21.js
discovery-api/js/w3c/bibref/VOICEXML30.js
discovery-api/js/w3c/bibref/VXML30REQS.js
discovery-api/js/w3c/bibref/WAI-AGE-LITERATURE.js
discovery-api/js/w3c/bibref/WAI-ARIA-IMPLEMENTATION.js
discovery-api/js/w3c/bibref/WAI-ARIA-PRACTICES.js
discovery-api/js/w3c/bibref/WAI-ARIA-PRIMER.js
discovery-api/js/w3c/bibref/WAI-ARIA-ROADMAP.js
discovery-api/js/w3c/bibref/WAI-ARIA.js
discovery-api/js/w3c/bibref/WCA.js
discovery-api/js/w3c/bibref/WCAG.js
discovery-api/js/w3c/bibref/WCAG10-CORE-TECHS.js
discovery-api/js/w3c/bibref/WCAG10-CSS-TECHS.js
discovery-api/js/w3c/bibref/WCAG10-HTML-TECHS.js
discovery-api/js/w3c/bibref/WCAG10-TECHS.js
discovery-api/js/w3c/bibref/WCAG2-REQ.js
discovery-api/js/w3c/bibref/WCAG2-TECH-REQ.js
discovery-api/js/w3c/bibref/WCAG20-TECHS.js
discovery-api/js/w3c/bibref/WCAG20.js
discovery-api/js/w3c/bibref/WCSS11.js
discovery-api/js/w3c/bibref/WCSS12.js
discovery-api/js/w3c/bibref/WEB-FORMS-2.js
discovery-api/js/w3c/bibref/WEBARCH.js
discovery-api/js/w3c/bibref/WEBCGM.js
discovery-api/js/w3c/bibref/WEBCGM20.js
discovery-api/js/w3c/bibref/WEBCGM21.js
discovery-api/js/w3c/bibref/WEBIDL.js
discovery-api/js/w3c/bibref/WEBMESSAGING.js
discovery-api/js/w3c/bibref/WEBONT-REQ.js
discovery-api/js/w3c/bibref/WEBSOCKETS.js
discovery-api/js/w3c/bibref/WEBSTORAGE.js
discovery-api/js/w3c/bibref/WEBWORKERS.js
discovery-api/js/w3c/bibref/WICD.js
discovery-api/js/w3c/bibref/WICDFULL.js
discovery-api/js/w3c/bibref/WICDMobile10.js
discovery-api/js/w3c/bibref/WIDGETS-APIS.js
discovery-api/js/w3c/bibref/WIDGETS-DIGSIG.js
discovery-api/js/w3c/bibref/WIDGETS-LAND.js
discovery-api/js/w3c/bibref/WIDGETS-PC-INTEROP.js
discovery-api/js/w3c/bibref/WIDGETS-PC-TESTS.js
discovery-api/js/w3c/bibref/WIDGETS-REQS.js
discovery-api/js/w3c/bibref/WIDGETS-UPDATES.js
discovery-api/js/w3c/bibref/WIDGETS.js
discovery-api/js/w3c/bibref/WINDOW.js
discovery-api/js/w3c/bibref/WORDNET-RDF.js
discovery-api/js/w3c/bibref/WS-ADDR-CORE.js
discovery-api/js/w3c/bibref/WS-ADDR-METADATA.js
discovery-api/js/w3c/bibref/WS-ADDR-SOAP.js
discovery-api/js/w3c/bibref/WS-ARCH-SCENARIOS.js
discovery-api/js/w3c/bibref/WS-ARCH.js
discovery-api/js/w3c/bibref/WS-CDL-10-PRIMER.js
discovery-api/js/w3c/bibref/WS-CDL-10.js
discovery-api/js/w3c/bibref/WS-CHOR-MODEL.js
discovery-api/js/w3c/bibref/WS-CHOR-REQS.js
discovery-api/js/w3c/bibref/WS-DESC-REQS.js
discovery-api/js/w3c/bibref/WS-DESC-USECASES.js
discovery-api/js/w3c/bibref/WS-ENUMERATION.js
discovery-api/js/w3c/bibref/WS-EVENTING.js
discovery-api/js/w3c/bibref/WS-FRAGMENT.js
discovery-api/js/w3c/bibref/WS-GLOSS.js
discovery-api/js/w3c/bibref/WS-I18N-REQ.js
discovery-api/js/w3c/bibref/WS-I18N-SCENARIOS.js
discovery-api/js/w3c/bibref/WS-I18N.js
discovery-api/js/w3c/bibref/WS-METADATA-EXCHANGE.js
discovery-api/js/w3c/bibref/WS-POLICY-ATTACH.js
discovery-api/js/w3c/bibref/WS-POLICY-GUIDELINES.js
discovery-api/js/w3c/bibref/WS-POLICY-PRIMER.js
discovery-api/js/w3c/bibref/WS-POLICY.js
discovery-api/js/w3c/bibref/WS-RESOURCE-TRANSFER.js
discovery-api/js/w3c/bibref/WS-SECURITY11.js
discovery-api/js/w3c/bibref/WS-TRANSFER.js
discovery-api/js/w3c/bibref/WSA-REQS.js
discovery-api/js/w3c/bibref/WSC-THREATS.js
discovery-api/js/w3c/bibref/WSC-UI.js
discovery-api/js/w3c/bibref/WSC-USECASES.js
discovery-api/js/w3c/bibref/WSC-XIT.js
discovery-api/js/w3c/bibref/WSDL11ELEMENTIDENTIFIERS.js
discovery-api/js/w3c/bibref/WSDL20-ADDITIONAL-MEPS.js
discovery-api/js/w3c/bibref/WSDL20-ADJUNCTS.js
discovery-api/js/w3c/bibref/WSDL20-ALTSCHEMALANGS.js
discovery-api/js/w3c/bibref/WSDL20-PRIMER.js
discovery-api/js/w3c/bibref/WSDL20-RDF.js
discovery-api/js/w3c/bibref/WSDL20-SOAP11-BINDING.js
discovery-api/js/w3c/bibref/WSDL20.js
discovery-api/js/w3c/bibref/WSLC.js
discovery-api/js/w3c/bibref/WebBug-Wikipedia.js
discovery-api/js/w3c/bibref/X11COLORS.js
discovery-api/js/w3c/bibref/X509V3.js
discovery-api/js/w3c/bibref/XACML-INTRO.js
discovery-api/js/w3c/bibref/XACML20.js
discovery-api/js/w3c/bibref/XADES.js
discovery-api/js/w3c/bibref/XAG.js
discovery-api/js/w3c/bibref/XBC-CHARACTERIZATION.js
discovery-api/js/w3c/bibref/XBC-MEASUREMENT.js
discovery-api/js/w3c/bibref/XBC-PROPERTIES.js
discovery-api/js/w3c/bibref/XBC-USE-CASES.js
discovery-api/js/w3c/bibref/XBL-PRIMER.js
discovery-api/js/w3c/bibref/XBL.js
discovery-api/js/w3c/bibref/XFORMS-11-REQ.js
discovery-api/js/w3c/bibref/XFORMS-BASIC.js
discovery-api/js/w3c/bibref/XFORMS-FOR-HTML.js
discovery-api/js/w3c/bibref/XFORMS10.js
discovery-api/js/w3c/bibref/XFORMS11.js
discovery-api/js/w3c/bibref/XFRAMES.js
discovery-api/js/w3c/bibref/XH.js
discovery-api/js/w3c/bibref/XHTML-ACCESS.js
discovery-api/js/w3c/bibref/XHTML-BASIC.js
discovery-api/js/w3c/bibref/XHTML-BASIC11.js
discovery-api/js/w3c/bibref/XHTML-FORMS-REQ.js
discovery-api/js/w3c/bibref/XHTML-MEDIA-TYPES.js
discovery-api/js/w3c/bibref/XHTML-MODULARIZATION.js
discovery-api/js/w3c/bibref/XHTML-MODULARIZATION11-2e.js
discovery-api/js/w3c/bibref/XHTML-MODULARIZATION11.js
discovery-api/js/w3c/bibref/XHTML-PRINT.js
discovery-api/js/w3c/bibref/XHTML-PROF-REQ.js
discovery-api/js/w3c/bibref/XHTML-RDFA-PRIMER.js
discovery-api/js/w3c/bibref/XHTML-RDFA-SCENARIOS.js
discovery-api/js/w3c/bibref/XHTML-RDFA.js
discovery-api/js/w3c/bibref/XHTML-ROADMAP.js
discovery-api/js/w3c/bibref/XHTML-ROLE.js
discovery-api/js/w3c/bibref/XHTML-VOCAB.js
discovery-api/js/w3c/bibref/XHTML1-SCHEMA.js
discovery-api/js/w3c/bibref/XHTML10.js
discovery-api/js/w3c/bibref/XHTML11-2e.js
discovery-api/js/w3c/bibref/XHTML11.js
discovery-api/js/w3c/bibref/XHTML2.js
discovery-api/js/w3c/bibref/XHTMLPLUSMATHMLPLUSSVG.js
discovery-api/js/w3c/bibref/XHTMLPLUSSMIL.js
discovery-api/js/w3c/bibref/XINCLUDE.js
discovery-api/js/w3c/bibref/XKMS-PGP.js
discovery-api/js/w3c/bibref/XKMS-WSDL.js
discovery-api/js/w3c/bibref/XKMS2-BINDINGS.js
discovery-api/js/w3c/bibref/XKMS2-REQ.js
discovery-api/js/w3c/bibref/XKMS2.js
discovery-api/js/w3c/bibref/XLINK-PRINCIPLES.js
discovery-api/js/w3c/bibref/XLINK-REQ.js
discovery-api/js/w3c/bibref/XLINK10-EXT.js
discovery-api/js/w3c/bibref/XLINK10.js
discovery-api/js/w3c/bibref/XLINK11.js
discovery-api/js/w3c/bibref/XLINK2RDF.js
discovery-api/js/w3c/bibref/XML-BLUEBERRY-REQ.js
discovery-api/js/w3c/bibref/XML-C14N.js
discovery-api/js/w3c/bibref/XML-C14N11.js
discovery-api/js/w3c/bibref/XML-C14N20.js
discovery-api/js/w3c/bibref/XML-CANONICAL-REQ.js
discovery-api/js/w3c/bibref/XML-ENCRYPTION-REQ.js
discovery-api/js/w3c/bibref/XML-ENTITY-NAMES.js
discovery-api/js/w3c/bibref/XML-EVENTS.js
discovery-api/js/w3c/bibref/XML-EXC-C14N.js
discovery-api/js/w3c/bibref/XML-FRAG-REQ.js
discovery-api/js/w3c/bibref/XML-FRAGID.js
discovery-api/js/w3c/bibref/XML-FRAGMENT.js
discovery-api/js/w3c/bibref/XML-I18N-BP.js
discovery-api/js/w3c/bibref/XML-ID-REQ.js
discovery-api/js/w3c/bibref/XML-ID.js
discovery-api/js/w3c/bibref/XML-INFOSET-RDFS.js
discovery-api/js/w3c/bibref/XML-INFOSET-REQ.js
discovery-api/js/w3c/bibref/XML-INFOSET.js
discovery-api/js/w3c/bibref/XML-Japanese.js
discovery-api/js/w3c/bibref/XML-LINK-STYLE.js
discovery-api/js/w3c/bibref/XML-MEDIA-TYPES.js
discovery-api/js/w3c/bibref/XML-MT.js
discovery-api/js/w3c/bibref/XML-NAMES.js
discovery-api/js/w3c/bibref/XML-NAMES11-REQ.js
discovery-api/js/w3c/bibref/XML-NAMES11.js
discovery-api/js/w3c/bibref/XML-PARSER-STAX.js
discovery-api/js/w3c/bibref/XML-SCHEMA-REQ.js
discovery-api/js/w3c/bibref/XML-STYLESHEET.js
discovery-api/js/w3c/bibref/XML10-4e.js
discovery-api/js/w3c/bibref/XML10.js
discovery-api/js/w3c/bibref/XML11.js
discovery-api/js/w3c/bibref/XML11SCHEMA10.js
discovery-api/js/w3c/bibref/XMLBASE.js
discovery-api/js/w3c/bibref/XMLDSIG-BESTPRACTICES.js
discovery-api/js/w3c/bibref/XMLDSIG-COMPLEXITY.js
discovery-api/js/w3c/bibref/XMLDSIG-CORE.js
discovery-api/js/w3c/bibref/XMLDSIG-CORE1.js
discovery-api/js/w3c/bibref/XMLDSIG-CORE2.js
discovery-api/js/w3c/bibref/XMLDSIG-GARCIA.js
discovery-api/js/w3c/bibref/XMLDSIG-PROPERTIES.js
discovery-api/js/w3c/bibref/XMLDSIG-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XMLDSIG-SEMANTICS.js
discovery-api/js/w3c/bibref/XMLDSIG-SIMPLIFY.js
discovery-api/js/w3c/bibref/XMLDSIG-THOMPSON.js
discovery-api/js/w3c/bibref/XMLDSIG-XPATH-FILTER2.js
discovery-api/js/w3c/bibref/XMLDSIG-XPATH.js
discovery-api/js/w3c/bibref/XMLDSIG2ED-TESTS.js
discovery-api/js/w3c/bibref/XMLENC-CORE.js
discovery-api/js/w3c/bibref/XMLENC-CORE1.js
discovery-api/js/w3c/bibref/XMLENC-DECRYPT.js
discovery-api/js/w3c/bibref/XMLHTTPREQUEST.js
discovery-api/js/w3c/bibref/XMLHTTPREQUEST2.js
discovery-api/js/w3c/bibref/XMLP-REQS.js
discovery-api/js/w3c/bibref/XMLP-SCENARIOS.js
discovery-api/js/w3c/bibref/XMLSCHEMA-0.js
discovery-api/js/w3c/bibref/XMLSCHEMA-1.js
discovery-api/js/w3c/bibref/XMLSCHEMA-11-REQ.js
discovery-api/js/w3c/bibref/XMLSCHEMA-2.js
discovery-api/js/w3c/bibref/XMLSCHEMA-FORMAL.js
discovery-api/js/w3c/bibref/XMLSCHEMA-GUIDE2VERSIONING.js
discovery-api/js/w3c/bibref/XMLSCHEMA-PATTERNS-ADVANCED.js
discovery-api/js/w3c/bibref/XMLSCHEMA-PATTERNS.js
discovery-api/js/w3c/bibref/XMLSCHEMA-REF.js
discovery-api/js/w3c/bibref/XMLSCHEMA11-1.js
discovery-api/js/w3c/bibref/XMLSCHEMA11-2.js
discovery-api/js/w3c/bibref/XMLSEC-ALGORITHMS.js
discovery-api/js/w3c/bibref/XMLSEC-DERIVEDKEYS.js
discovery-api/js/w3c/bibref/XMLSEC-GHCIPHERS.js
discovery-api/js/w3c/bibref/XMLSEC-NEXTSTEPS-2007.js
discovery-api/js/w3c/bibref/XMLSEC-RELAXNG.js
discovery-api/js/w3c/bibref/XMLSEC11-REQS.js
discovery-api/js/w3c/bibref/XMLSTYLE.js
discovery-api/js/w3c/bibref/XOP10.js
discovery-api/js/w3c/bibref/XOPINC-FAQ.js
discovery-api/js/w3c/bibref/XPATH-DATAMODEL.js
discovery-api/js/w3c/bibref/XPATH-FULL-TEXT-10-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XPATH-FULL-TEXT-10-USE-CASES.js
discovery-api/js/w3c/bibref/XPATH-FULL-TEXT-10.js
discovery-api/js/w3c/bibref/XPATH-FUNCTIONS.js
discovery-api/js/w3c/bibref/XPATH.js
discovery-api/js/w3c/bibref/XPATH20.js
discovery-api/js/w3c/bibref/XPATH20REQ.js
discovery-api/js/w3c/bibref/XPROC-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XPROC.js
discovery-api/js/w3c/bibref/XPTR-ELEMENT.js
discovery-api/js/w3c/bibref/XPTR-FRAMEWORK.js
discovery-api/js/w3c/bibref/XPTR-INFOSET-LIAISON.js
discovery-api/js/w3c/bibref/XPTR-POLICY.js
discovery-api/js/w3c/bibref/XPTR-REQ.js
discovery-api/js/w3c/bibref/XPTR-XMLNS.js
discovery-api/js/w3c/bibref/XPTR-XPOINTER-CR2001.js
discovery-api/js/w3c/bibref/XPTR-XPOINTER.js
discovery-api/js/w3c/bibref/XQUERY-11-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XQUERY-11-USE-CASES.js
discovery-api/js/w3c/bibref/XQUERY-11.js
discovery-api/js/w3c/bibref/XQUERY-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XQUERY-SEMANTICS.js
discovery-api/js/w3c/bibref/XQUERY-SX-10-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XQUERY-SX-10-USE-CASES.js
discovery-api/js/w3c/bibref/XQUERY-SX-10.js
discovery-api/js/w3c/bibref/XQUERY-UPDATE-10-REQUIREMENTS.js
discovery-api/js/w3c/bibref/XQUERY-UPDATE-10-USE-CASES.js
discovery-api/js/w3c/bibref/XQUERY-UPDATE-10.js
discovery-api/js/w3c/bibref/XQUERY-USE-CASES.js
discovery-api/js/w3c/bibref/XQUERY-XPATH-PARSING.js
discovery-api/js/w3c/bibref/XQUERY.js
discovery-api/js/w3c/bibref/XQUERYX-11.js
discovery-api/js/w3c/bibref/XQUERYX.js
discovery-api/js/w3c/bibref/XQUPDATEUSECASES.js
discovery-api/js/w3c/bibref/XSL10.js
discovery-api/js/w3c/bibref/XSL11-REQ.js
discovery-api/js/w3c/bibref/XSL11.js
discovery-api/js/w3c/bibref/XSLFO20-REQ.js
discovery-api/js/w3c/bibref/XSLREQ.js
discovery-api/js/w3c/bibref/XSLT-XQUERY-SERIALIZATION.js
discovery-api/js/w3c/bibref/XSLT.js
discovery-api/js/w3c/bibref/XSLT11.js
discovery-api/js/w3c/bibref/XSLT11REQ.js
discovery-api/js/w3c/bibref/XSLT20.js
discovery-api/js/w3c/bibref/XSLT20REQ.js
discovery-api/js/w3c/bibref/XSLT21.js
discovery-api/js/w3c/bibref/YACC.js
discovery-api/js/w3c/bibref/ZEROCONF.js
discovery-api/js/w3c/bibref/ZHMARK.js
discovery-api/js/w3c/headers.js
discovery-api/js/w3c/profile-common.js
discovery-api/js/w3c/structure.js
discovery-api/js/w3c/style.js
discovery-api/js/w3c/templates/headers.html
discovery-api/js/w3c/unhtml5.js
discovery-api/tools/syntaxhighlighter/LGPL-LICENSE
discovery-api/tools/syntaxhighlighter/MIT-LICENSE
discovery-api/tools/syntaxhighlighter/css/shCore.css
discovery-api/tools/syntaxhighlighter/css/shCoreDefault.css
discovery-api/tools/syntaxhighlighter/css/shCoreDjango.css
discovery-api/tools/syntaxhighlighter/css/shCoreEclipse.css
discovery-api/tools/syntaxhighlighter/css/shCoreEmacs.css
discovery-api/tools/syntaxhighlighter/css/shCoreFadeToGrey.css
discovery-api/tools/syntaxhighlighter/css/shCoreMDUltra.css
discovery-api/tools/syntaxhighlighter/css/shCoreMidnight.css
discovery-api/tools/syntaxhighlighter/css/shCoreRDark.css
discovery-api/tools/syntaxhighlighter/css/shThemeDefault.css
discovery-api/tools/syntaxhighlighter/css/shThemeDjango.css
discovery-api/tools/syntaxhighlighter/css/shThemeEclipse.css
discovery-api/tools/syntaxhighlighter/css/shThemeEmacs.css
discovery-api/tools/syntaxhighlighter/css/shThemeFadeToGrey.css
discovery-api/tools/syntaxhighlighter/css/shThemeMDUltra.css
discovery-api/tools/syntaxhighlighter/css/shThemeMidnight.css
discovery-api/tools/syntaxhighlighter/css/shThemeRDark.css
discovery-api/tools/syntaxhighlighter/js/shAutoloader.js
discovery-api/tools/syntaxhighlighter/js/shBrushAS3.js
discovery-api/tools/syntaxhighlighter/js/shBrushAppleScript.js
discovery-api/tools/syntaxhighlighter/js/shBrushBash.js
discovery-api/tools/syntaxhighlighter/js/shBrushCSharp.js
discovery-api/tools/syntaxhighlighter/js/shBrushColdFusion.js
discovery-api/tools/syntaxhighlighter/js/shBrushCpp.js
discovery-api/tools/syntaxhighlighter/js/shBrushCss.js
discovery-api/tools/syntaxhighlighter/js/shBrushDelphi.js
discovery-api/tools/syntaxhighlighter/js/shBrushDiff.js
discovery-api/tools/syntaxhighlighter/js/shBrushErlang.js
discovery-api/tools/syntaxhighlighter/js/shBrushGroovy.js
discovery-api/tools/syntaxhighlighter/js/shBrushJScript.js
discovery-api/tools/syntaxhighlighter/js/shBrushJava.js
discovery-api/tools/syntaxhighlighter/js/shBrushJavaFX.js
discovery-api/tools/syntaxhighlighter/js/shBrushPerl.js
discovery-api/tools/syntaxhighlighter/js/shBrushPhp.js
discovery-api/tools/syntaxhighlighter/js/shBrushPlain.js
discovery-api/tools/syntaxhighlighter/js/shBrushPowerShell.js
discovery-api/tools/syntaxhighlighter/js/shBrushPython.js
discovery-api/tools/syntaxhighlighter/js/shBrushRuby.js
discovery-api/tools/syntaxhighlighter/js/shBrushSass.js
discovery-api/tools/syntaxhighlighter/js/shBrushScala.js
discovery-api/tools/syntaxhighlighter/js/shBrushSql.js
discovery-api/tools/syntaxhighlighter/js/shBrushVb.js
discovery-api/tools/syntaxhighlighter/js/shBrushXml.js
discovery-api/tools/syntaxhighlighter/js/shCore.js
discovery-api/tools/syntaxhighlighter/js/shLegacy.js
     1.1 --- a/discovery-api/FPWD.html	Fri Aug 03 15:49:17 2012 +0200
     1.2 +++ b/discovery-api/FPWD.html	Fri Aug 03 15:58:23 2012 +0200
     1.3 @@ -5,358 +5,6 @@
     1.4      <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
     1.5      
     1.6  
     1.7 -    <style type="text/css">
     1.8 -      /**
     1.9 -       * SyntaxHighlighter
    1.10 -       * http://alexgorbatchev.com/SyntaxHighlighter
    1.11 -       *
    1.12 -       * SyntaxHighlighter is donationware. If you are using it, please donate.
    1.13 -       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
    1.14 -       *
    1.15 -       * @version
    1.16 -       * 3.0.83 (July 02 2010)
    1.17 -       *
    1.18 -       * @copyright
    1.19 -       * Copyright (C) 2004-2010 Alex Gorbatchev.
    1.20 -       *
    1.21 -       * @license
    1.22 -       * Dual licensed under the MIT and GPL licenses.
    1.23 -       */
    1.24 -      .syntaxhighlighter a,
    1.25 -      .syntaxhighlighter div,
    1.26 -      .syntaxhighlighter code,
    1.27 -      .syntaxhighlighter table,
    1.28 -      .syntaxhighlighter table td,
    1.29 -      .syntaxhighlighter table tr,
    1.30 -      .syntaxhighlighter table tbody,
    1.31 -      .syntaxhighlighter table thead,
    1.32 -      .syntaxhighlighter table caption,
    1.33 -      .syntaxhighlighter textarea {
    1.34 -        -moz-border-radius: 0 0 0 0 !important;
    1.35 -        -webkit-border-radius: 0 0 0 0 !important;
    1.36 -        background: none !important;
    1.37 -        border: 0 !important;
    1.38 -        bottom: auto !important;
    1.39 -        float: none !important;
    1.40 -        height: auto !important;
    1.41 -        left: auto !important;
    1.42 -        line-height: 1.1em !important;
    1.43 -        margin: 0 !important;
    1.44 -        outline: 0 !important;
    1.45 -        overflow: visible !important;
    1.46 -        padding: 0 !important;
    1.47 -        position: static !important;
    1.48 -        right: auto !important;
    1.49 -        text-align: left !important;
    1.50 -        top: auto !important;
    1.51 -        vertical-align: baseline !important;
    1.52 -        width: auto !important;
    1.53 -        box-sizing: content-box !important;
    1.54 -        font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
    1.55 -        font-weight: normal !important;
    1.56 -        font-style: normal !important;
    1.57 -        font-size: 1em !important;
    1.58 -        min-height: inherit !important;
    1.59 -        min-height: auto !important;
    1.60 -      }
    1.61 -
    1.62 -      .syntaxhighlighter {
    1.63 -        width: 100% !important;
    1.64 -        margin: 1em 0 1em 0 !important;
    1.65 -        position: relative !important;
    1.66 -        overflow: auto !important;
    1.67 -        font-size: 0.8em !important;
    1.68 -      }
    1.69 -      .syntaxhighlighter.source {
    1.70 -        overflow: hidden !important;
    1.71 -      }
    1.72 -      .syntaxhighlighter .bold {
    1.73 -        font-weight: bold !important;
    1.74 -      }
    1.75 -      .syntaxhighlighter .italic {
    1.76 -        font-style: italic !important;
    1.77 -      }
    1.78 -      .syntaxhighlighter .line {
    1.79 -        white-space: pre !important;
    1.80 -      }
    1.81 -      .syntaxhighlighter table {
    1.82 -        width: 100% !important;
    1.83 -      }
    1.84 -      .syntaxhighlighter table caption {
    1.85 -        text-align: left !important;
    1.86 -        padding: .5em 0 0.5em 1em !important;
    1.87 -      }
    1.88 -      .syntaxhighlighter table td.code {
    1.89 -        width: 100% !important;
    1.90 -      }
    1.91 -      .syntaxhighlighter table td.code .container {
    1.92 -        position: relative !important;
    1.93 -      }
    1.94 -      .syntaxhighlighter table td.code .container textarea {
    1.95 -        box-sizing: border-box !important;
    1.96 -        position: absolute !important;
    1.97 -        left: 0 !important;
    1.98 -        top: 0 !important;
    1.99 -        width: 100% !important;
   1.100 -        height: 100% !important;
   1.101 -        border: none !important;
   1.102 -
   1.103 -        padding-left: 1em !important;
   1.104 -        overflow: hidden !important;
   1.105 -        white-space: pre !important;
   1.106 -      }
   1.107 -      .syntaxhighlighter table td.gutter .line {
   1.108 -        text-align: right !important;
   1.109 -        padding: 0 0.5em 0 1em !important;
   1.110 -      }
   1.111 -      .syntaxhighlighter table td.code .line {
   1.112 -        padding: 0 1em !important;
   1.113 -      }
   1.114 -      .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
   1.115 -        padding-left: 0em !important;
   1.116 -      }
   1.117 -      .syntaxhighlighter.show {
   1.118 -        display: block !important;
   1.119 -      }
   1.120 -      .syntaxhighlighter.collapsed table {
   1.121 -        display: none !important;
   1.122 -      }
   1.123 -      .syntaxhighlighter.collapsed .toolbar {
   1.124 -        padding: 0.1em 0.8em 0em 0.8em !important;
   1.125 -        font-size: 1em !important;
   1.126 -        position: static !important;
   1.127 -        width: auto !important;
   1.128 -        height: auto !important;
   1.129 -      }
   1.130 -      .syntaxhighlighter.collapsed .toolbar span {
   1.131 -        display: inline !important;
   1.132 -        margin-right: 1em !important;
   1.133 -      }
   1.134 -      .syntaxhighlighter.collapsed .toolbar span a {
   1.135 -        padding: 0 !important;
   1.136 -        display: none !important;
   1.137 -      }
   1.138 -      .syntaxhighlighter.collapsed .toolbar span a.expandSource {
   1.139 -        display: inline !important;
   1.140 -      }
   1.141 -      .syntaxhighlighter .toolbar {
   1.142 -        position: absolute !important;
   1.143 -        right: 1px !important;
   1.144 -        top: 1px !important;
   1.145 -        width: 11px !important;
   1.146 -        height: 11px !important;
   1.147 -        font-size: 10px !important;
   1.148 -        z-index: 10 !important;
   1.149 -      }
   1.150 -      .syntaxhighlighter .toolbar span.title {
   1.151 -        display: inline !important;
   1.152 -      }
   1.153 -      .syntaxhighlighter .toolbar a {
   1.154 -        display: block !important;
   1.155 -        text-align: center !important;
   1.156 -        text-decoration: none !important;
   1.157 -        padding-top: 1px !important;
   1.158 -      }
   1.159 -      .syntaxhighlighter .toolbar a.expandSource {
   1.160 -        display: none !important;
   1.161 -      }
   1.162 -      .syntaxhighlighter.ie {
   1.163 -        font-size: .9em !important;
   1.164 -        padding: 1px 0 1px 0 !important;
   1.165 -      }
   1.166 -      .syntaxhighlighter.ie .toolbar {
   1.167 -        line-height: 8px !important;
   1.168 -      }
   1.169 -      .syntaxhighlighter.ie .toolbar a {
   1.170 -        padding-top: 0px !important;
   1.171 -      }
   1.172 -      .syntaxhighlighter.printing .line.alt1 .content,
   1.173 -      .syntaxhighlighter.printing .line.alt2 .content,
   1.174 -      .syntaxhighlighter.printing .line.highlighted .number,
   1.175 -      .syntaxhighlighter.printing .line.highlighted.alt1 .content,
   1.176 -      .syntaxhighlighter.printing .line.highlighted.alt2 .content {
   1.177 -        background: none !important;
   1.178 -      }
   1.179 -      .syntaxhighlighter.printing .line .number {
   1.180 -        color: #bbbbbb !important;
   1.181 -      }
   1.182 -      .syntaxhighlighter.printing .line .content {
   1.183 -        color: black !important;
   1.184 -      }
   1.185 -      .syntaxhighlighter.printing .toolbar {
   1.186 -        display: none !important;
   1.187 -      }
   1.188 -      .syntaxhighlighter.printing a {
   1.189 -        text-decoration: none !important;
   1.190 -      }
   1.191 -      .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
   1.192 -        color: black !important;
   1.193 -      }
   1.194 -      .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
   1.195 -        color: #008200 !important;
   1.196 -      }
   1.197 -      .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
   1.198 -        color: blue !important;
   1.199 -      }
   1.200 -      .syntaxhighlighter.printing .keyword {
   1.201 -        color: #006699 !important;
   1.202 -        font-weight: bold !important;
   1.203 -      }
   1.204 -      .syntaxhighlighter.printing .preprocessor {
   1.205 -        color: gray !important;
   1.206 -      }
   1.207 -      .syntaxhighlighter.printing .variable {
   1.208 -        color: #aa7700 !important;
   1.209 -      }
   1.210 -      .syntaxhighlighter.printing .value {
   1.211 -        color: #009900 !important;
   1.212 -      }
   1.213 -      .syntaxhighlighter.printing .functions {
   1.214 -        color: #ff1493 !important;
   1.215 -      }
   1.216 -      .syntaxhighlighter.printing .constants {
   1.217 -        color: #0066cc !important;
   1.218 -      }
   1.219 -      .syntaxhighlighter.printing .script {
   1.220 -        font-weight: bold !important;
   1.221 -      }
   1.222 -      .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
   1.223 -        color: gray !important;
   1.224 -      }
   1.225 -      .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
   1.226 -        color: #ff1493 !important;
   1.227 -      }
   1.228 -      .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
   1.229 -        color: red !important;
   1.230 -      }
   1.231 -      .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
   1.232 -        color: black !important;
   1.233 -      }
   1.234 -    </style>
   1.235 -    <style type="text/css">
   1.236 -      /**
   1.237 -       * SyntaxHighlighter
   1.238 -       * http://alexgorbatchev.com/SyntaxHighlighter
   1.239 -       *
   1.240 -       * SyntaxHighlighter is donationware. If you are using it, please donate.
   1.241 -       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
   1.242 -       *
   1.243 -       * @version
   1.244 -       * 3.0.83 (July 02 2010)
   1.245 -       *
   1.246 -       * @copyright
   1.247 -       * Copyright (C) 2004-2010 Alex Gorbatchev.
   1.248 -       *
   1.249 -       * @license
   1.250 -       * Dual licensed under the MIT and GPL licenses.
   1.251 -       */
   1.252 -      .syntaxhighlighter {
   1.253 -        background-color: none !important;
   1.254 -      }
   1.255 -      .syntaxhighlighter .line.alt1 {
   1.256 -        background-color: none !important;
   1.257 -      }
   1.258 -      .syntaxhighlighter .line.alt2 {
   1.259 -        background-color: none !important;
   1.260 -      }
   1.261 -      .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
   1.262 -        background-color: none !important;
   1.263 -      }
   1.264 -      .syntaxhighlighter .line.highlighted.number {
   1.265 -        color: black !important;
   1.266 -      }
   1.267 -      .syntaxhighlighter table caption {
   1.268 -        color: black !important;
   1.269 -      }
   1.270 -      .syntaxhighlighter .gutter {
   1.271 -        color: #afafaf !important;
   1.272 -      }
   1.273 -      .syntaxhighlighter .gutter .line {
   1.274 -        border-right: 3px solid #6ce26c !important;
   1.275 -      }
   1.276 -      .syntaxhighlighter .gutter .line.highlighted {
   1.277 -        background-color: #6ce26c !important;
   1.278 -        color: white !important;
   1.279 -      }
   1.280 -      .syntaxhighlighter.printing .line .content {
   1.281 -        border: none !important;
   1.282 -      }
   1.283 -      .syntaxhighlighter.collapsed {
   1.284 -        overflow: visible !important;
   1.285 -      }
   1.286 -      .syntaxhighlighter.collapsed .toolbar {
   1.287 -        color: blue !important;
   1.288 -        background: none !important;
   1.289 -        border: 1px solid #6ce26c !important;
   1.290 -      }
   1.291 -      .syntaxhighlighter.collapsed .toolbar a {
   1.292 -        color: blue !important;
   1.293 -      }
   1.294 -      .syntaxhighlighter.collapsed .toolbar a:hover {
   1.295 -        color: red !important;
   1.296 -      }
   1.297 -      .syntaxhighlighter .toolbar {
   1.298 -        color: white !important;
   1.299 -        background: #6ce26c !important;
   1.300 -        border: none !important;
   1.301 -      }
   1.302 -      .syntaxhighlighter .toolbar a {
   1.303 -        color: white !important;
   1.304 -      }
   1.305 -      .syntaxhighlighter .toolbar a:hover {
   1.306 -        color: black !important;
   1.307 -      }
   1.308 -      .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
   1.309 -        color: black !important;
   1.310 -      }
   1.311 -      .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
   1.312 -        color: #008200 !important;
   1.313 -      }
   1.314 -      .syntaxhighlighter .string, .syntaxhighlighter .string a {
   1.315 -        color: blue !important;
   1.316 -      }
   1.317 -      .syntaxhighlighter .keyword {
   1.318 -        color: #006699 !important;
   1.319 -      }
   1.320 -      .syntaxhighlighter .preprocessor {
   1.321 -        color: gray !important;
   1.322 -      }
   1.323 -      .syntaxhighlighter .variable {
   1.324 -        color: #aa7700 !important;
   1.325 -      }
   1.326 -      .syntaxhighlighter .value {
   1.327 -        color: #009900 !important;
   1.328 -      }
   1.329 -      .syntaxhighlighter .functions {
   1.330 -        color: #ff1493 !important;
   1.331 -      }
   1.332 -      .syntaxhighlighter .constants {
   1.333 -        color: #0066cc !important;
   1.334 -      }
   1.335 -      .syntaxhighlighter .script {
   1.336 -        font-weight: bold !important;
   1.337 -        color: #006699 !important;
   1.338 -        background-color: none !important;
   1.339 -      }
   1.340 -      .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
   1.341 -        color: gray !important;
   1.342 -      }
   1.343 -      .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
   1.344 -        color: #ff1493 !important;
   1.345 -      }
   1.346 -      .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
   1.347 -        color: red !important;
   1.348 -      }
   1.349 -
   1.350 -      .syntaxhighlighter .keyword {
   1.351 -        font-weight: bold !important;
   1.352 -      }
   1.353 -    </style>
   1.354 -    
   1.355 -    
   1.356 -    
   1.357 -    
   1.358 -
   1.359      
   1.360      <style type="text/css">
   1.361        /* Custom CSS optimizations (Richard Tibbett) */
   1.362 @@ -539,6 +187,13 @@
   1.363  }
   1.364  
   1.365  
   1.366 +</style><style>/* HIGHLIGHTS */
   1.367 +code.prettyprint {
   1.368 +    color:  inherit;
   1.369 +}
   1.370 +
   1.371 +/* this from google-code-prettify */
   1.372 +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}
   1.373  </style><link href="http://www.w3.org/StyleSheets/TR/W3C-WD" rel="stylesheet"><!--[if lt IE 9]><script src='undefined://www.w3.org/2008/site/js/html5shiv.js'></script><![endif]--></head>
   1.374  
   1.375    <body><div class="head">
   1.376 @@ -595,7 +250,7 @@
   1.377  </div>
   1.378      <section class="introductory" id="abstract"><h2>Abstract</h2>
   1.379        <p>
   1.380 -        This specification defines a mechanism for an HTML document to discover and subsequently communicate with <acronym title="Hypertext Transfer Protocol">HTTP</acronym>-based services
   1.381 +        This specification defines a mechanism for an HTML document to discover and subsequently communicate with <abbr title="Hypertext Transfer Protocol">HTTP</abbr>-based services
   1.382          advertised via common discovery protocols within a user's network.
   1.383        </p>
   1.384      </section><section id="sotd" class="introductory"><h2>Status of This Document</h2>
   1.385 @@ -611,7 +266,7 @@
   1.386          
   1.387        <p>
   1.388          This document represents the early consensus of the group on the scope and features of the proposed
   1.389 -        <acronym title="Application Programming Interface">API</acronym>.
   1.390 +        <abbr title="Application Programming Interface">API</abbr>.
   1.391        </p>
   1.392      
   1.393          <p>
   1.394 @@ -657,18 +312,18 @@
   1.395        
   1.396      
   1.397    
   1.398 -</section><section id="toc"><h2 class="introductory">Table of Contents</h2><ul class="toc"><li class="tocline"><a class="tocxref" href="#introduction"><span class="secno">1. </span>Introduction</a></li><li class="tocline"><a class="tocxref" href="#conformance"><span class="secno">2. </span>Conformance</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#dependencies"><span class="secno">2.1 </span>Dependencies</a></li></ul></li><li class="tocline"><a class="tocxref" href="#terminology"><span class="secno">3. </span>Terminology</a></li><li class="tocline"><a class="tocxref" href="#requesting-networked-services"><span class="secno">4. </span>Requesting networked services</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#methods"><span class="secno">4.1 </span>Methods</a></li><li class="tocline"><a class="tocxref" href="#error-handling"><span class="secno">4.2 </span>Error Handling</a></li></ul></li><li class="tocline"><a class="tocxref" href="#obtaining-networked-services"><span class="secno">5. </span>Obtaining networked services</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes"><span class="secno">5.1 </span>Attributes</a></li><li class="tocline"><a class="tocxref" href="#methods-1"><span class="secno">5.2 </span>Methods</a></li><li class="tocline"><a class="tocxref" href="#events"><span class="secno">5.3 </span>Events</a></li></ul></li><li class="tocline"><a class="tocxref" href="#communicating-with-a-networked-service"><span class="secno">6. </span>Communicating with a networked service</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes-1"><span class="secno">6.1 </span>Attributes</a></li><li class="tocline"><a class="tocxref" href="#states"><span class="secno">6.2 </span>States</a></li><li class="tocline"><a class="tocxref" href="#events-1"><span class="secno">6.3 </span>Events</a></li></ul></li><li class="tocline"><a class="tocxref" href="#service-discovery"><span class="secno">7. </span>Service Discovery</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#zeroconf-mdns-dns-sd"><span class="secno">7.1 </span>Zeroconf (<acronym title="Multicast DNS">mDNS</acronym> + <acronym title="Domain Name System">DNS</acronym>-<acronym title="Service Discovery">SD</acronym>)</a></li><li class="tocline"><a class="tocxref" href="#universal-plug-and-play-upnp"><span class="secno">7.2 </span>Universal Plug-and-Play (<acronym title="Universal Plug-and-Play">UPnP</acronym>)</a></li><li class="tocline"><a class="tocxref" href="#network-topology-monitoring"><span class="secno">7.3 </span>Network Topology Monitoring</a></li></ul></li><li class="tocline"><a class="tocxref" href="#garbage-collection"><span class="secno">8. </span>Garbage collection</a></li><li class="tocline"><a class="tocxref" href="#use-cases-and-requirements"><span class="secno">9. </span>Use Cases and Requirements</a></li><li class="tocline"><a class="tocxref" href="#examples"><span class="secno">A. </span>Examples</a></li><li class="tocline"><a class="tocxref" href="#acknowledgements"><span class="secno">B. </span>Acknowledgements</a></li><li class="tocline"><a class="tocxref" href="#references"><span class="secno">C. </span>References</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#normative-references"><span class="secno">C.1 </span>Normative references</a></li><li class="tocline"><a class="tocxref" href="#informative-references"><span class="secno">C.2 </span>Informative references</a></li></ul></li></ul></section>
   1.399 +</section><section id="toc"><h2 class="introductory">Table of Contents</h2><ul class="toc"><li class="tocline"><a class="tocxref" href="#introduction"><span class="secno">1. </span>Introduction</a></li><li class="tocline"><a class="tocxref" href="#conformance"><span class="secno">2. </span>Conformance</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#dependencies"><span class="secno">2.1 </span>Dependencies</a></li></ul></li><li class="tocline"><a class="tocxref" href="#terminology"><span class="secno">3. </span>Terminology</a></li><li class="tocline"><a class="tocxref" href="#requesting-networked-services"><span class="secno">4. </span>Requesting networked services</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#methods"><span class="secno">4.1 </span>Methods</a></li><li class="tocline"><a class="tocxref" href="#error-handling"><span class="secno">4.2 </span>Error Handling</a></li></ul></li><li class="tocline"><a class="tocxref" href="#obtaining-networked-services"><span class="secno">5. </span>Obtaining networked services</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes"><span class="secno">5.1 </span>Attributes</a></li><li class="tocline"><a class="tocxref" href="#methods-1"><span class="secno">5.2 </span>Methods</a></li><li class="tocline"><a class="tocxref" href="#events"><span class="secno">5.3 </span>Events</a></li></ul></li><li class="tocline"><a class="tocxref" href="#communicating-with-a-networked-service"><span class="secno">6. </span>Communicating with a networked service</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#attributes-1"><span class="secno">6.1 </span>Attributes</a></li><li class="tocline"><a class="tocxref" href="#states"><span class="secno">6.2 </span>States</a></li><li class="tocline"><a class="tocxref" href="#events-1"><span class="secno">6.3 </span>Events</a></li></ul></li><li class="tocline"><a class="tocxref" href="#service-discovery"><span class="secno">7. </span>Service Discovery</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#zeroconf-mdns-dns-sd"><span class="secno">7.1 </span>Zeroconf (<abbr title="Multicast DNS">mDNS</abbr> + <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr>)</a></li><li class="tocline"><a class="tocxref" href="#universal-plug-and-play-upnp"><span class="secno">7.2 </span>Universal Plug-and-Play (<abbr title="Universal Plug-and-Play">UPnP</abbr>)</a></li><li class="tocline"><a class="tocxref" href="#network-topology-monitoring"><span class="secno">7.3 </span>Network Topology Monitoring</a></li></ul></li><li class="tocline"><a class="tocxref" href="#garbage-collection"><span class="secno">8. </span>Garbage collection</a></li><li class="tocline"><a class="tocxref" href="#use-cases-and-requirements"><span class="secno">9. </span>Use Cases and Requirements</a></li><li class="tocline"><a class="tocxref" href="#examples"><span class="secno">A. </span>Examples</a></li><li class="tocline"><a class="tocxref" href="#acknowledgements"><span class="secno">B. </span>Acknowledgements</a></li><li class="tocline"><a class="tocxref" href="#references"><span class="secno">C. </span>References</a><ul class="toc"><li class="tocline"><a class="tocxref" href="#normative-references"><span class="secno">C.1 </span>Normative references</a></li><li class="tocline"><a class="tocxref" href="#informative-references"><span class="secno">C.2 </span>Informative references</a></li></ul></li></ul></section>
   1.400  
   1.401      
   1.402  
   1.403      <section id="introduction" class="informative">
   1.404        <!--OddPage--><h2><span class="secno">1. </span>Introduction</h2><p><em>This section is non-normative.</em></p>
   1.405  
   1.406 -      <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.407 +      <p>To enable Web pages to connect and communicate with Local-networked Services provided over <abbr title="Hypertext Transfer Protocol">HTTP</abbr>, this specification introduces the
   1.408        <a href="#navigatornetworkservice"><code>NavigatorNetworkService</code></a> interface.</p>
   1.409  
   1.410        <p>
   1.411 -         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,
   1.412 +         Using this <abbr title="Application Programming Interface">API</abbr> consists of requesting a well-known service type, known by developers and advertised by Local-networked Devices. User authorization, where the user connects the web page to one or more discovered services,
   1.413           is expected before the web page is able to interact with any Local-networked Services.
   1.414        </p>
   1.415  
   1.416 @@ -688,27 +343,50 @@
   1.417  
   1.418        <p>
   1.419           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.420 -         authorized via the provided <acronym title="Application Programming Interface">API</acronym>.
   1.421 +         authorized via the provided <abbr title="Application Programming Interface">API</abbr>.
   1.422           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.423           connected Local-networked Service.
   1.424        </p>
   1.425  
   1.426        <div class="example">
   1.427 -       <p>Example of requesting a <acronym title="Domain Name System">DNS</acronym>-<acronym title="Service Discovery">SD</acronym> advertised service:</p>
   1.428 +       <p>Example of requesting a <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr> advertised service:</p>
   1.429         <hr>
   1.430 -       <div><div id="highlighter_999770" 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.431 +       <pre class="highlight prettyprint"><span class="kwd">function</span><span class="pln"> showServices</span><span class="pun">(</span><span class="pln"> services </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.432 +  </span><span class="com">// Show a list of all the services provided to the web page</span><span class="pln">
   1.433 +  </span><span class="kwd">for</span><span class="pun">(</span><span class="kwd">var</span><span class="pln"> i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> l </span><span class="pun">=</span><span class="pln"> services</span><span class="pun">.</span><span class="pln">length</span><span class="pun">;</span><span class="pln"> i </span><span class="pun">&lt;</span><span class="pln"> l</span><span class="pun">;</span><span class="pln"> i</span><span class="pun">++)</span><span class="pln"> console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="pln"> services</span><span class="pun">[</span><span class="pln">i</span><span class="pun">].</span><span class="pln">name </span><span class="pun">);</span><span class="pln">
   1.434 +</span><span class="pun">}</span><span class="pln">
   1.435 +
   1.436 +navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">(</span><span class="str">'zeroconf:_boxee-jsonrpc._tcp'</span><span class="pun">,</span><span class="pln"> showServices</span><span class="pun">);</span></pre>
   1.437        </div>
   1.438  
   1.439        <div class="example">
   1.440 -        <p>Example of requesting a <acronym title="Universal Plug-and-Play">UPnP</acronym> advertised service, also handling error conditions:</p>
   1.441 +        <p>Example of requesting a <abbr title="Universal Plug-and-Play">UPnP</abbr> advertised service, also handling error conditions:</p>
   1.442          <hr>
   1.443 -        <div><div id="highlighter_14212" 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.444 +        <pre class="highlight prettyprint"><span class="kwd">function</span><span class="pln"> showServices</span><span class="pun">(</span><span class="pln"> services </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.445 +  </span><span class="com">// Show a list of all the services provided to the web page</span><span class="pln">
   1.446 +  </span><span class="kwd">for</span><span class="pun">(</span><span class="kwd">var</span><span class="pln"> i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> l </span><span class="pun">=</span><span class="pln"> services</span><span class="pun">.</span><span class="pln">length</span><span class="pun">;</span><span class="pln"> i </span><span class="pun">&lt;</span><span class="pln"> l</span><span class="pun">;</span><span class="pln"> i</span><span class="pun">++)</span><span class="pln"> console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="pln"> services</span><span class="pun">[</span><span class="pln">i</span><span class="pun">].</span><span class="pln">name </span><span class="pun">);</span><span class="pln">
   1.447 +</span><span class="pun">}</span><span class="pln">
   1.448 +
   1.449 +</span><span class="kwd">function</span><span class="pln"> error</span><span class="pun">(</span><span class="pln"> e </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.450 +  console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="pln"> </span><span class="str">"Error occurred: "</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> e</span><span class="pun">.</span><span class="pln">code </span><span class="pun">);</span><span class="pln">
   1.451 +</span><span class="pun">}</span><span class="pln">
   1.452 +
   1.453 +navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">(</span><span class="str">'upnp:urn:schemas-upnp-org:service:ContentDirectory:1'</span><span class="pun">,</span><span class="pln"> showServices</span><span class="pun">,</span><span class="pln"> error</span><span class="pun">);</span></pre>
   1.454        </div>
   1.455  
   1.456        <div class="example">
   1.457 -        <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.458 +        <p>Example of requesting either a <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr> or <abbr title="Universal Plug-and-Play">UPnP</abbr> advertised service:</p>
   1.459          <hr>
   1.460 -        <div><div id="highlighter_404060" 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.461 +        <pre class="highlight prettyprint"><span class="kwd">function</span><span class="pln"> showServices</span><span class="pun">(</span><span class="pln"> services </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.462 +  </span><span class="com">// Show a list of all the services provided to the web page (+ service type)</span><span class="pln">
   1.463 +  </span><span class="kwd">for</span><span class="pun">(</span><span class="kwd">var</span><span class="pln"> i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> l </span><span class="pun">=</span><span class="pln"> services</span><span class="pun">.</span><span class="pln">length</span><span class="pun">;</span><span class="pln"> i </span><span class="pun">&lt;</span><span class="pln"> l</span><span class="pun">;</span><span class="pln"> i</span><span class="pun">++)</span><span class="pln">
   1.464 +     console</span><span class="pun">.</span><span class="pln">log</span><span class="pun">(</span><span class="pln"> services</span><span class="pun">[</span><span class="pln">i</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">'('</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="pln">i</span><span class="pun">].</span><span class="pln">type </span><span class="pun">+</span><span class="pln"> </span><span class="str">')'</span><span class="pln"> </span><span class="pun">);</span><span class="pln">
   1.465 +</span><span class="pun">}</span><span class="pln">
   1.466 +
   1.467 +navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">([</span><span class="pln">
   1.468 +  </span><span class="str">'zeroconf:_boxee-jsonrpc._tcp'</span><span class="pun">,</span><span class="pln">
   1.469 +  </span><span class="str">'upnp:urn:schemas-upnp-org:service:ContentDirectory:1'</span><span class="pln">
   1.470 +</span><span class="pun">],</span><span class="pln"> showServices</span><span class="pun">);</span></pre>
   1.471        </div>
   1.472  
   1.473        <p>For more detailed examples see the <a href="#examples">Examples</a> section.
   1.474 @@ -776,7 +454,7 @@
   1.475        </p>
   1.476  
   1.477        <p>
   1.478 -         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.479 +         The term DOM is used to refer to the <abbr title="Application Programming Interface">API</abbr> set made available to scripts in Web applications, and does not necessarily imply the existence of an actual <code>Document</code> object or of any
   1.480           other <code>Node</code> objects as defined in the DOM Core specifications. [<cite><a href="#bib-DOM4" class="bibref">DOM4</a></cite>]
   1.481        </p>
   1.482  
   1.483 @@ -978,10 +656,10 @@
   1.484  
   1.485                 <ol class="rule">
   1.486                    <li>
   1.487 -                     Add the <var>service</var>'s <code>url</code> parameter to the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a>.
   1.488 +                     Add the <var>service</var>'s <code>url</code> parameter to the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>.
   1.489                    </li>
   1.490                    <li>
   1.491 -                    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 class="internalDFN" href="#dfn-setup-a-upnp-events-subscription">setup a <acronym title="Universal Plug-and-Play">UPnP</acronym> Events Subscription</a> for <var>service</var>.
   1.492 +                    If <var>service</var> was originally created from a <abbr title="Universal Plug-and-Play">UPnP</abbr> discovery process and the <var>service</var>'s <code>eventsUrl</code> parameter is not empty then <a class="internalDFN" href="#dfn-setup-a-upnp-events-subscription">setup a <abbr title="Universal Plug-and-Play">UPnP</abbr> Events Subscription</a> for <var>service</var>.
   1.493                    </li>
   1.494                 </ol>
   1.495              </li>
   1.496 @@ -1013,7 +691,7 @@
   1.497  
   1.498            <p>
   1.499              When a <a href="#networkservice"><code>NetworkService</code></a> object is provided to a Web page, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> add the <code>url</code> property
   1.500 -             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.501 +             to the <dfn id="dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</dfn>. This list enables the
   1.502              Web page to override and initiate cross-site resource requests towards these URLs, and any sub-resources of these URLs, within the current
   1.503              <a href="http://www.whatwg.org/specs/web-apps/current-work/complete/browsers.html#entry-script" class="externalDFN">entry script</a>'s
   1.504              <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.505 @@ -1021,7 +699,7 @@
   1.506           </p>
   1.507  
   1.508           <p>
   1.509 -            If the user navigates away from the current browsing context, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> remove all previously whitelisted urls from the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a>.
   1.510 +            If the user navigates away from the current browsing context, the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> remove all previously whitelisted urls from the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>.
   1.511              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.512              </p><ul>
   1.513                <li>If the current script is reloaded at any point in the same or different window.</li>
   1.514 @@ -1270,7 +948,7 @@
   1.515      <!--OddPage--><h2><span class="secno">6. </span>Communicating with a networked service</h2>
   1.516  
   1.517  <p>
   1.518 -   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.519 +   The <a href="#networkservice"><code>NetworkService</code></a> interface is used to provide a set of connection information for an <abbr title="Hypertext Transfer Protocol">HTTP</abbr> service endpoint and if available, service events, running on a networked device.
   1.520  </p>
   1.521  
   1.522  <pre class="widl">[NoInterfaceObject]
   1.523 @@ -1342,7 +1020,7 @@
   1.524          </dt>
   1.525          <dd>
   1.526            <p>
   1.527 -            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 class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a>.
   1.528 +            The control <abbr title="Uniform Resource Locator">URL</abbr> endpoint (including any required port information) of the user-selected control service that has been added to the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>.
   1.529            </p>
   1.530          </dd>
   1.531          <dt>
   1.532 @@ -1372,8 +1050,8 @@
   1.533            </p>
   1.534  
   1.535           <p>
   1.536 -            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.537 -            endpoint for the service that has been added to the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <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.538 +            The <dfn id="dom-networkservice-url"><code>url</code></dfn> attribute is an <a href="http://www.w3.org/TR/html5/urls.html#absolute-url" class="externalDFN">absolute <abbr title="Uniform Resource Locator">URL</abbr></a> pointing to the root <abbr title="Hypertext Transfer Protocol">HTTP</abbr>
   1.539 +            endpoint for the service that has been added to the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>. Web pages can subsequently use this value for implicit cross-document messaging via various existing mechanisms (e.g. Web Sockets, Server-Sent Events, Web Messaging, XMLHttpRequest).
   1.540           </p>
   1.541  
   1.542           <p>
   1.543 @@ -1491,8 +1169,8 @@
   1.544              <!--OddPage--><h2><span class="secno">7. </span>Service Discovery</h2>
   1.545  
   1.546        <p>
   1.547 -         A <a class="internalDFN" href="#dfn-user-agent">user agent</a> conforming to this specification <em title="may" class="rfc2119">may</em> implement <acronym title="Simple Service Discovery Protocol">SSDP</acronym> [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>] and Zeroconf [<cite><a href="#bib-ZEROCONF" class="bibref">ZEROCONF</a></cite>] service discovery mechanisms
   1.548 -         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 class="internalDFN" href="#dfn-user-agent">user agent</a> implements either of these service discovery mechanisms, then it <em title="must" class="rfc2119">must</em> conform to the corresponding algorithms provided in this section of the specification.
   1.549 +         A <a class="internalDFN" href="#dfn-user-agent">user agent</a> conforming to this specification <em title="may" class="rfc2119">may</em> implement <abbr title="Simple Service Discovery Protocol">SSDP</abbr> [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>] and Zeroconf [<cite><a href="#bib-ZEROCONF" class="bibref">ZEROCONF</a></cite>] service discovery mechanisms
   1.550 +         to enable Web pages to request and connect with <abbr title="Hypertext Transfer Protocol">HTTP</abbr> services running on networked devices, discovered via either mechanism, through this <abbr title="Application Programming Interface">API</abbr>. When a <a class="internalDFN" href="#dfn-user-agent">user agent</a> implements either of these service discovery mechanisms, then it <em title="must" class="rfc2119">must</em> conform to the corresponding algorithms provided in this section of the specification.
   1.551        </p>
   1.552        <p>
   1.553           This section presents how the results of these two service discovery
   1.554 @@ -1502,7 +1180,7 @@
   1.555        <p>
   1.556           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.557           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.558 -         invocation of this <acronym title="Application Programming Interface">API</acronym> from a Web page).
   1.559 +         invocation of this <abbr title="Application Programming Interface">API</abbr> from a Web page).
   1.560        </p>
   1.561  
   1.562        <p>
   1.563 @@ -1512,18 +1190,18 @@
   1.564        </p>
   1.565  
   1.566              <section id="zeroconf-mdns-dns-sd">
   1.567 -         <h3><span class="secno">7.1 </span>Zeroconf (<acronym title="Multicast DNS">mDNS</acronym> + <acronym title="Domain Name System">DNS</acronym>-<acronym title="Service Discovery">SD</acronym>)</h3>
   1.568 +         <h3><span class="secno">7.1 </span>Zeroconf (<abbr title="Multicast DNS">mDNS</abbr> + <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr>)</h3>
   1.569  
   1.570           <p>
   1.571 -            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">PTR</acronym> records with the name <code>_services._dns-sd._udp</code> on the resolved recommended automatic browsing
   1.572 +            For each <abbr title="Domain Name System">DNS</abbr> response received from a user-agent-initiated Multicast <abbr title="Domain Name System">DNS</abbr> Browse for <abbr title="DNS Pointer Record">PTR</abbr> records with the name <code>_services._dns-sd._udp</code> on the resolved recommended automatic browsing
   1.573     domain [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>], the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> run the following steps:
   1.574           </p>
   1.575  
   1.576           <ol class="rule">
   1.577  
   1.578 -            <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.579 +            <li>Let <var>service <abbr title="Multicast DNS">mDNS</abbr> responses</var> be an array of <abbr title="DNS Pointer Record">PTR</abbr> records received by issuing a Multicast <abbr title="Domain Name System">DNS</abbr> Browse for <abbr title="DNS Pointer Record">PTR</abbr> records with the name of the current discovered service type.</li>
   1.580  
   1.581 -            <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.582 +            <li>For each Object <var>service <abbr title="Multicast DNS">mDNS</abbr> response</var> in <var>service <abbr title="Multicast DNS">mDNS</abbr> responses</var>, run the following steps:
   1.583                 <ol>
   1.584  
   1.585                    <li>
   1.586 @@ -1531,23 +1209,23 @@
   1.587                    </li>
   1.588  
   1.589                    <li>
   1.590 -                     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 href="#bib-MDNS" class="bibref">MDNS</a></cite>].
   1.591 +                     Set <var>network service record</var>'s <code>id</code> property to the value of the full <abbr title="DNS Pointer Record">PTR</abbr> Service Instance Name [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>].
   1.592                    </li>
   1.593  
   1.594                    <li>
   1.595 -                     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 href="#bib-MDNS" class="bibref">MDNS</a></cite>].
   1.596 +                     Set <var>network service record</var>'s <code>name</code> property to the value of the <abbr title="DNS Pointer Record">PTR</abbr> Service Instance Name's <var>Instance</var> component [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>].
   1.597                    </li>
   1.598  
   1.599                    <li>
   1.600 -                     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 href="#bib-MDNS" class="bibref">MDNS</a></cite>].
   1.601 +                     Set <var>network service record</var>'s <code>type</code> property to the concatenation of the string <code>zeroconf:</code> followed by the value of the <abbr title="DNS Pointer Record">PTR</abbr> Service Instance Name's <var>Service</var> component [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>].
   1.602                    </li>
   1.603  
   1.604                    <li>
   1.605 -                     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 href="#bib-DNS-SD" class="bibref">DNS-SD</a></cite>] of the current service from the <acronym title="DNS Pointer Record">PTR</acronym> record provided [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>].
   1.606 +                     Set <var>network service record</var>'s <code>url</code> property to the resolvable Service <abbr title="Uniform Resource Locator">URL</abbr> obtained from performing an <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr> Lookup [<cite><a href="#bib-DNS-SD" class="bibref">DNS-SD</a></cite>] of the current service from the <abbr title="DNS Pointer Record">PTR</abbr> record provided [<cite><a href="#bib-MDNS" class="bibref">MDNS</a></cite>].
   1.607                    </li>
   1.608  
   1.609                    <li>
   1.610 -                     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 href="#bib-DNS-SD" class="bibref">DNS-SD</a></cite>].
   1.611 +                     Set <var>network service record</var>'s <code>config</code> property to the string value of the contents of the first <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr> TXT record associated with the <var>service <abbr title="Multicast DNS">mDNS</abbr> response</var> as defined in [<cite><a href="#bib-DNS-SD" class="bibref">DNS-SD</a></cite>].
   1.612                    </li>
   1.613  
   1.614                    <li>
   1.615 @@ -1587,16 +1265,16 @@
   1.616        </section>
   1.617  
   1.618        <section id="universal-plug-and-play-upnp">
   1.619 -         <h3><span class="secno">7.2 </span>Universal Plug-and-Play (<acronym title="Universal Plug-and-Play">UPnP</acronym>)</h3>
   1.620 +         <h3><span class="secno">7.2 </span>Universal Plug-and-Play (<abbr title="Universal Plug-and-Play">UPnP</abbr>)</h3>
   1.621  
   1.622           <p>
   1.623 -            For each <acronym title="Simple Service Discovery Protocol">SSDP</acronym> Presence Announcement [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</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 href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>], the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> run the following steps:
   1.624 +            For each <abbr title="Simple Service Discovery Protocol">SSDP</abbr> Presence Announcement [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>] - a <abbr title="Hypertext Transfer Protocol">HTTP</abbr> NOTIFY request - received from a user-agent-initiated <abbr title="Simple Service Discovery Protocol">SSDP</abbr> Discovery Request [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>], the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> run the following steps:
   1.625           </p>
   1.626  
   1.627           <ol class="rule">
   1.628              <li>
   1.629 -               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.630 -               value being that <acronym title="Hypertext Transfer Protocol">HTTP</acronym> header's accompanying value.
   1.631 +               Let <var>ssdp device</var> be an Object with a property for each <abbr title="Hypertext Transfer Protocol">HTTP</abbr> header received in the received <abbr title="Simple Service Discovery Protocol">SSDP</abbr> Presence Announcement, with each key being the name of a <abbr title="Hypertext Transfer Protocol">HTTP</abbr> header and its
   1.632 +               value being that <abbr title="Hypertext Transfer Protocol">HTTP</abbr> header's accompanying value.
   1.633              </li>
   1.634  
   1.635              <li>
   1.636 @@ -1608,8 +1286,8 @@
   1.637              </li>
   1.638  
   1.639              <li>
   1.640 -               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.641 -               defined in the section 'Retrieving a description using <acronym title="Hypertext Transfer Protocol">HTTP</acronym>' [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>].
   1.642 +               Let <var>root device descriptor file</var> contain the contents of the file located at the <abbr title="Uniform Resource Locator">URL</abbr> provided in the first occurrence of <var>Location</var> obtained according to the rules
   1.643 +               defined in the section 'Retrieving a description using <abbr title="Hypertext Transfer Protocol">HTTP</abbr>' [<cite><a href="#bib-UPNP-DEVICEARCH11" class="bibref">UPNP-DEVICEARCH11</a></cite>].
   1.644              </li>
   1.645  
   1.646              <li>
   1.647 @@ -1695,10 +1373,10 @@
   1.648           </ol>
   1.649  
   1.650           <p>
   1.651 -            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 class="internalDFN" href="#dfn-user-agent">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.652 +            A <dfn id="dfn-user-agent-generated-callback-url">user-agent generated callback url</dfn> is a Local-network accessible <abbr title="Uniform Resource Locator">URL</abbr> endpoint that a <a class="internalDFN" href="#dfn-user-agent">user agent</a> must generate and maintain for receiving <abbr title="Hypertext Transfer Protocol">HTTP</abbr> NOTIFY requests from <abbr title="Universal Plug-and-Play">UPnP</abbr> Event sources.
   1.653           </p>
   1.654  
   1.655 -         <p>When the <a class="internalDFN" href="#dfn-user-agent">user agent</a> is to <dfn id="dfn-setup-a-upnp-events-subscription">setup a <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.656 +         <p>When the <a class="internalDFN" href="#dfn-user-agent">user agent</a> is to <dfn id="dfn-setup-a-upnp-events-subscription">setup a <abbr title="Universal Plug-and-Play">UPnP</abbr> Events Subscription</dfn>, it is to run the following steps with the current <var>network service record</var> object:</p>
   1.657  
   1.658           <ol class="rule">
   1.659              <li>
   1.660 @@ -1706,17 +1384,17 @@
   1.661              </li>
   1.662  
   1.663              <li>
   1.664 -               Let <var>callback <acronym title="Uniform Resource Locator">URL</acronym></var> be the value of creating a new <a class="internalDFN" href="#dfn-user-agent-generated-callback-url">user-agent generated callback url</a>.
   1.665 +               Let <var>callback <abbr title="Uniform Resource Locator">URL</abbr></var> be the value of creating a new <a class="internalDFN" href="#dfn-user-agent-generated-callback-url">user-agent generated callback url</a>.
   1.666              </li>
   1.667  
   1.668              <li>
   1.669 -               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.670 +               Send a <abbr title="Hypertext Transfer Protocol">HTTP</abbr> SUBSCRIBE request with a <em>NT</em> header with a string value of <code>upnp:event</code>, a <em>TIMEOUT</em> header with an integer value of
   1.671                 <code>86400</code> and a <em>CALLBACK</em> header
   1.672 -               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.673 +               with a string value of <var>callback <abbr title="Uniform Resource Locator">URL</abbr></var> towards the <var>network service record</var>'s <code>eventsUrl</code> property.
   1.674              </li>
   1.675  
   1.676              <li>
   1.677 -               If a non-200 OK response is received from the <acronym title="Hypertext Transfer Protocol">HTTP</acronym> SUBSCRIBE request then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
   1.678 +               If a non-200 OK response is received from the <abbr title="Hypertext Transfer Protocol">HTTP</abbr> SUBSCRIBE request then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
   1.679              </li>
   1.680  
   1.681              <li>
   1.682 @@ -1743,11 +1421,11 @@
   1.683                             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.684                          </li>
   1.685                          <li>
   1.686 -                           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.687 +                           Send a <abbr title="Hypertext Transfer Protocol">HTTP</abbr> SUBSCRIBE request with a <em>SID</em> header with the string value of <var>callback ID</var> and a <em>TIMEOUT</em> header
   1.688                             with an integer value of <code>86400</code> towards the <var>network service record</var>'s <code>eventsUrl</code> property.
   1.689                          </li>
   1.690                          <li>
   1.691 -                           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.692 +                           On receiving a valid 200 OK, update <var>callback ID</var> with the string value of the first included <em>SID</em> header, if it exists. All other <abbr title="Hypertext Transfer Protocol">HTTP</abbr>
   1.693                             responses should cause the <a class="internalDFN" href="#dfn-user-agent">user agent</a> to continue from the step labeled <em>refresh subscription</em> above.
   1.694                          </li>
   1.695                       </ol>
   1.696 @@ -1755,11 +1433,11 @@
   1.697                    </li>
   1.698  
   1.699                    <li>
   1.700 -                     <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 class="internalDFN" href="#dfn-user-agent">user agent</a> is to run the following steps:
   1.701 +                     <em>Listen</em>: For each <abbr title="Hypertext Transfer Protocol">HTTP</abbr> NOTIFY request received at the <var>callback <abbr title="Uniform Resource Locator">URL</abbr></var> the <a class="internalDFN" href="#dfn-user-agent">user agent</a> is to run the following steps:
   1.702  
   1.703                       <ol class="rule">
   1.704                          <li>
   1.705 -                           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 class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
   1.706 +                           Let <var>content clone</var> be the result of obtaining the message body of the <abbr title="Hypertext Transfer Protocol">HTTP</abbr> NOTIFY request. If <var>content clone</var> is empty, then the <a class="internalDFN" href="#dfn-user-agent">user agent</a> <em title="must" class="rfc2119">must</em> abort these steps.
   1.707                          </li>
   1.708                          <li>
   1.709                            Create a new <code>message</code> event that uses the <a href="http://dev.w3.org/html5/postmsg/#messageevent" class="externalDFN"><code>MessageEvent</code></a> interface [<cite><a href="#bib-POSTMSG" class="bibref">POSTMSG</a></cite>], with the name <code>message</code>,
   1.710 @@ -1818,7 +1496,7 @@
   1.711  
   1.712                       <ol class="rule">
   1.713                          <li>
   1.714 -                           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">Section 6: Service Discovery</a>.
   1.715 +                           Re-issue an <abbr title="Multicast DNS">mDNS</abbr> search and <abbr title="Simple Service Discovery Protocol">SSDP</abbr> discovery search and handle the responses according to the processing defined in <a href="#service-discovery">Section 6: Service Discovery</a>.
   1.716                          </li>
   1.717                       </ol>
   1.718                    </div>
   1.719 @@ -1829,11 +1507,11 @@
   1.720        <!--OddPage--><h2><span class="secno">8. </span>Garbage collection</h2>
   1.721  
   1.722        <p>
   1.723 -         A <a class="internalDFN" href="#networkservice"><code>NetworkService</code></a> object containing a <code>url</code> parameter currently in the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a> <em title="must not" class="rfc2119">must not</em> be garbage collected.
   1.724 +         A <a class="internalDFN" href="#networkservice"><code>NetworkService</code></a> object containing a <code>url</code> parameter currently in the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a> <em title="must not" class="rfc2119">must not</em> be garbage collected.
   1.725        </p>
   1.726  
   1.727        <p>
   1.728 -         Only when the user navigates away from the current browsing context can <a class="internalDFN" href="#networkservice"><code>NetworkService</code></a> objects be garbage-collected and records in the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a> be removed.
   1.729 +         Only when the user navigates away from the current browsing context can <a class="internalDFN" href="#networkservice"><code>NetworkService</code></a> objects be garbage-collected and records in the <a class="internalDFN" href="#dfn-entry-script-origin-s-url-whitelist">entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a> be removed.
   1.730        </p>
   1.731  
   1.732     </section>
   1.733 @@ -1842,7 +1520,7 @@
   1.734      <section id="use-cases-and-requirements">
   1.735        <!--OddPage--><h2><span class="secno">9. </span>Use Cases and Requirements</h2>
   1.736  
   1.737 -      <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.738 +      <p>This section covers what the requirements are for this <abbr title="Application Programming Interface">API</abbr>, as well as illustrates some use cases.</p>
   1.739  
   1.740        <ul class="rule">
   1.741           <li>
   1.742 @@ -1875,7 +1553,7 @@
   1.743              <li>
   1.744                 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.745                 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.746 -               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.747 +               between <abbr title="Universal Plug-and-Play">UPnP</abbr>, JSON-RPC, Protocol Buffers or other messaging formats depending on the Home Media Server requested. The Web page is able to communicate with the user-selected Home Media
   1.748                 Server in the messaging format supported by that Device, which, in this example is a simple key/value pair text format.
   1.749              </li>
   1.750             </ul>
   1.751 @@ -1903,7 +1581,7 @@
   1.752           </li>
   1.753  
   1.754           <li>
   1.755 -           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.756 +           User agents should provide an <abbr title="Application Programming Interface">API</abbr> exposed to script that exposes the features above. The user is notified by UI anytime interaction with Local-networked Services is requested, giving the user
   1.757             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.758             these APIs occur silently without user intervention.
   1.759           </li>
   1.760 @@ -1918,7 +1596,65 @@
   1.761              </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.762              <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.763              <hr>
   1.764 -            <div><div id="highlighter_625563" 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 <acronym title="Application Programming Interface">API</acronym> 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.765 +            <pre class="highlight prettyprint"><span class="tag">&lt;input</span><span class="pln"> </span><span class="atn">type</span><span class="pun">=</span><span class="atv">"button"</span><span class="pln"> </span><span class="atn">value</span><span class="pun">=</span><span class="atv">"Start"</span><span class="pln"> </span><span class="atn">onclick</span><span class="pun">=</span><span class="atv">"</span><span class="pln">start</span><span class="pun">()</span><span class="atv">"</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"startBtn"</span><span class="tag">/&gt;</span><span class="pln">
   1.766 +</span><span class="tag">&lt;div</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"debugconsole"</span><span class="tag">&gt;&lt;/div&gt;</span><span class="pln">
   1.767 +
   1.768 +</span><span class="tag">&lt;script&gt;</span><span class="pln">
   1.769 + </span><span class="kwd">var</span><span class="pln"> startBtn </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">'startBtn'</span><span class="pun">),</span><span class="pln">
   1.770 +     debug </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">'debugconsole'</span><span class="pun">);</span><span class="pln">
   1.771 +
   1.772 + </span><span class="kwd">function</span><span class="pln"> start</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.773 +   </span><span class="kwd">if</span><span class="pun">(</span><span class="pln">navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.774 +      navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">(</span><span class="str">'zeroconf:_xbmc-jsonrpc._tcp'</span><span class="pun">,</span><span class="pln"> gotXBMCService</span><span class="pun">,</span><span class="pln"> error</span><span class="pun">);</span><span class="pln">
   1.775 +      startBtn</span><span class="pun">.</span><span class="pln">disabled </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">;</span><span class="pln">
   1.776 +   </span><span class="pun">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.777 +      debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;Service Discovery API not supported!"</span><span class="pun">;</span><span class="pln">
   1.778 +   </span><span class="pun">}</span><span class="pln">
   1.779 + </span><span class="pun">}</span><span class="pln">
   1.780 +
   1.781 + </span><span class="kwd">function</span><span class="pln"> gotXBMCService</span><span class="pun">(</span><span class="pln">services</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.782 +
   1.783 +</span><span class="com">// Listen for service disconnect messages</span><span class="pln">
   1.784 +
   1.785 +   services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'readystatechange'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">(</span><span class="pln"> e </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.786 +     </span><span class="kwd">if</span><span class="pun">(</span><span class="pln">services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">readyState </span><span class="pun">===</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">UNAVAILABLE</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.787 +       debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" disconnected."</span><span class="pun">;</span><span class="pln">
   1.788 +       startBtn</span><span class="pun">.</span><span class="pln">disabled </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span><span class="pln">
   1.789 +     </span><span class="pun">}</span><span class="pln">
   1.790 +   </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
   1.791 +
   1.792 +</span><span class="com">// Send a service message to get albums list (and process the service response)</span><span class="pln">
   1.793 +
   1.794 +   </span><span class="kwd">var</span><span class="pln"> svcXhr </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">XMLHttpRequest</span><span class="pun">();</span><span class="pln">
   1.795 +   svcXhr</span><span class="pun">.</span><span class="pln">open</span><span class="pun">(</span><span class="str">"POST"</span><span class="pun">,</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">url </span><span class="pun">+</span><span class="pln"> </span><span class="str">"/getAlbums"</span><span class="pun">);</span><span class="pln"> </span><span class="com">// services[0].url and its subresources have been</span><span class="pln">
   1.796 +                                                        </span><span class="com">// whitelisted for cross-site XHR use in this</span><span class="pln">
   1.797 +                                                        </span><span class="com">// current browsing context.</span><span class="pln">
   1.798 +
   1.799 +   svcXhr</span><span class="pun">.</span><span class="pln">setRequestHeader</span><span class="pun">(</span><span class="str">'Content-Type'</span><span class="pun">,</span><span class="pln"> </span><span class="str">'application/json-rpc'</span><span class="pun">);</span><span class="pln">
   1.800 +
   1.801 +   svcXhr</span><span class="pun">.</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'readystatechange'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">(</span><span class="pln"> response </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.802 +     </span><span class="kwd">if</span><span class="pun">(</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">readyState </span><span class="pun">!=</span><span class="pln"> </span><span class="lit">4</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">status </span><span class="pun">!=</span><span class="pln"> </span><span class="lit">200</span><span class="pln"> </span><span class="pun">)</span><span class="pln">
   1.803 +        </span><span class="kwd">return</span><span class="pun">;</span><span class="pln">
   1.804 +     debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" response received: "</span><span class="pun">;</span><span class="pln">
   1.805 +     debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> JSON</span><span class="pun">.</span><span class="pln">parse</span><span class="pun">(</span><span class="pln">response</span><span class="pun">.</span><span class="pln">responseText</span><span class="pun">);</span><span class="pln">
   1.806 +   </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
   1.807 +
   1.808 +   </span><span class="kwd">var</span><span class="pln"> svcMsg </span><span class="pun">=</span><span class="pln"> </span><span class="pun">[</span><span class="pln">
   1.809 +     </span><span class="pun">{</span><span class="pln"> </span><span class="str">"jsonrpc"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"2.0"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"method"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"AudioLibrary.GetAlbums"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"params"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">{</span><span class="pln"> </span><span class="str">"genreid"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">-</span><span class="lit">1</span><span class="pun">,</span><span class="pln">
   1.810 +         </span><span class="str">"artistid"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">-</span><span class="lit">1</span><span class="pun">,</span><span class="pln"> </span><span class="str">"start"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">-</span><span class="lit">1</span><span class="pun">,</span><span class="pln"> </span><span class="str">"end"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">-</span><span class="lit">1</span><span class="pln"> </span><span class="pun">},</span><span class="pln"> </span><span class="str">"id"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"1"</span><span class="pln"> </span><span class="pun">}</span><span class="pln">
   1.811 +   </span><span class="pun">];</span><span class="pln">
   1.812 +
   1.813 +   svcXhr</span><span class="pun">.</span><span class="pln">send</span><span class="pun">(</span><span class="pln">JSON</span><span class="pun">.</span><span class="pln">stringify</span><span class="pun">(</span><span class="pln">svcMsg</span><span class="pun">));</span><span class="pln">
   1.814 +   debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" request sent: "</span><span class="pun">;</span><span class="pln">
   1.815 +   debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> JSON</span><span class="pun">.</span><span class="pln">stringify</span><span class="pun">(</span><span class="pln">svcMsg</span><span class="pun">);</span><span class="pln">
   1.816 +
   1.817 + </span><span class="pun">}</span><span class="pln">
   1.818 +
   1.819 + </span><span class="kwd">function</span><span class="pln"> error</span><span class="pun">(</span><span class="pln"> err </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.820 +   debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;An error occurred obtaining a local network service."</span><span class="pun">;</span><span class="pln">
   1.821 +   startBtn</span><span class="pun">.</span><span class="pln">disabled </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">;</span><span class="pln">
   1.822 + </span><span class="pun">}</span><span class="pln">
   1.823 +</span><span class="tag">&lt;/script&gt;</span></pre>
   1.824             </div>
   1.825  
   1.826             <div class="example">
   1.827 @@ -1930,7 +1666,108 @@
   1.828               <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.829              </p>
   1.830              <hr>
   1.831 -            <div><div id="highlighter_396344" 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.832 +            <pre class="highlight prettyprint"><span class="tag">&lt;select</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"make"</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"make"</span><span class="tag">&gt;</span><span class="pln">
   1.833 +  </span><span class="tag">&lt;option</span><span class="pln"> </span><span class="atn">selected</span><span class="pun">=</span><span class="atv">"selected"</span><span class="pln"> </span><span class="atn">disabled</span><span class="pun">=</span><span class="atv">"disabled"</span><span class="tag">&gt;</span><span class="pln">Select make</span><span class="tag">&lt;/option&gt;</span><span class="pln">
   1.834 +  </span><span class="tag">&lt;option&gt;</span><span class="pln">Sony</span><span class="tag">&lt;/option&gt;</span><span class="pln">
   1.835 +  </span><span class="tag">&lt;option&gt;</span><span class="pln">Philips</span><span class="tag">&lt;/option&gt;</span><span class="pln">
   1.836 +  </span><span class="tag">&lt;option&gt;</span><span class="pln">Alba</span><span class="tag">&lt;/option&gt;</span><span class="pln">
   1.837 +</span><span class="tag">&lt;/select&gt;</span><span class="pln">
   1.838 +</span><span class="tag">&lt;select</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"model"</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"model"</span><span class="tag">&gt;&lt;/select&gt;</span><span class="pln">
   1.839 +</span><span class="tag">&lt;div</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"debugconsole"</span><span class="tag">&gt;&lt;/div&gt;</span><span class="pln">
   1.840 +
   1.841 +</span><span class="tag">&lt;script&gt;</span><span class="pln">
   1.842 +  </span><span class="kwd">var</span><span class="pln"> debug </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">'debugconsole'</span><span class="pun">);</span><span class="pln">
   1.843 +
   1.844 +  </span><span class="kwd">var</span><span class="pln"> models </span><span class="pun">=</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.845 +    </span><span class="str">"Sony"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">[</span><span class="pln">
   1.846 +      </span><span class="pun">{</span><span class="str">"name"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"Bravia TV S1000"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"type"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"upnp"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"service"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"urn:schemas-upnp-org:service:RenderingControl:1"</span><span class="pln"> </span><span class="pun">},</span><span class="pln">
   1.847 +      </span><span class="pun">{</span><span class="str">"name"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"Bravia TV S2000"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"type"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"zeroconf"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"service"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"_mediarenderer._http._tcp"</span><span class="pln"> </span><span class="pun">},</span><span class="pln">
   1.848 +      </span><span class="pun">{</span><span class="str">"name"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"HiFi WD10"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"type"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"upnp"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"service"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"urn:schemas-upnp-org:service:RenderingControl:1"</span><span class="pln"> </span><span class="pun">}</span><span class="pln">
   1.849 +    </span><span class="pun">],</span><span class="pln">
   1.850 +    </span><span class="str">"Philips"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">[</span><span class="pln"> </span><span class="com">/* ... */</span><span class="pln"> </span><span class="pun">],</span><span class="pln">
   1.851 +    </span><span class="str">"Alba"</span><span class="pun">:</span><span class="pln"> </span><span class="pun">[</span><span class="pln"> </span><span class="com">/* ... */</span><span class="pln"> </span><span class="pun">]</span><span class="pln">
   1.852 +  </span><span class="pun">};</span><span class="pln">
   1.853 +
   1.854 +  </span><span class="kwd">var</span><span class="pln"> makeEl </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">"make"</span><span class="pun">),</span><span class="pln">
   1.855 +      modelEl </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">getElementById</span><span class="pun">(</span><span class="str">"model"</span><span class="pun">);</span><span class="pln">
   1.856 +
   1.857 +  makeEl</span><span class="pun">.</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'change'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.858 +    modelEl</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">=</span><span class="pln"> </span><span class="str">""</span><span class="pun">;</span><span class="pln"> </span><span class="com">// reset</span><span class="pln">
   1.859 +    </span><span class="kwd">var</span><span class="pln"> defaultOption </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">createElement</span><span class="pun">(</span><span class="str">"option"</span><span class="pun">);</span><span class="pln">
   1.860 +    defaultOption</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">=</span><span class="pln"> </span><span class="str">"Select model"</span><span class="pun">;</span><span class="pln">
   1.861 +    defaultOption</span><span class="pun">.</span><span class="pln">setAttribute</span><span class="pun">(</span><span class="str">"disabled"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"disabled"</span><span class="pun">);</span><span class="pln">
   1.862 +    defaultOption</span><span class="pun">.</span><span class="pln">setAttribute</span><span class="pun">(</span><span class="str">"selected"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"selected"</span><span class="pun">);</span><span class="pln">
   1.863 +    modelEl</span><span class="pun">.</span><span class="pln">appendChild</span><span class="pun">(</span><span class="pln">defaultOption</span><span class="pun">);</span><span class="pln">
   1.864 +    </span><span class="kwd">for</span><span class="pun">(</span><span class="kwd">var</span><span class="pln"> i </span><span class="pun">=</span><span class="pln"> </span><span class="lit">0</span><span class="pun">,</span><span class="pln"> l </span><span class="pun">=</span><span class="pln"> models</span><span class="pun">[</span><span class="pln">makeEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">].</span><span class="pln">length</span><span class="pun">;</span><span class="pln"> i </span><span class="pun">&lt;</span><span class="pln"> l</span><span class="pun">;</span><span class="pln"> i</span><span class="pun">++)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.865 +      </span><span class="kwd">var</span><span class="pln"> option </span><span class="pun">=</span><span class="pln"> document</span><span class="pun">.</span><span class="pln">createElement</span><span class="pun">(</span><span class="str">"option"</span><span class="pun">);</span><span class="pln">
   1.866 +      option</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">=</span><span class="pln"> models</span><span class="pun">[</span><span class="pln">makeEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">][</span><span class="pln">i</span><span class="pun">][</span><span class="str">"name"</span><span class="pun">];</span><span class="pln">
   1.867 +      option</span><span class="pun">.</span><span class="pln">setAttribute</span><span class="pun">(</span><span class="str">"value"</span><span class="pun">,</span><span class="pln"> models</span><span class="pun">[</span><span class="pln">makeEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">][</span><span class="pln">i</span><span class="pun">][</span><span class="str">"type"</span><span class="pun">]</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> </span><span class="str">":"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> models</span><span class="pun">[</span><span class="pln">makeEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">][</span><span class="pln">i</span><span class="pun">][</span><span class="str">"service"</span><span class="pun">]);</span><span class="pln">
   1.868 +      modelEl</span><span class="pun">.</span><span class="pln">appendChild</span><span class="pun">(</span><span class="pln">option</span><span class="pun">);</span><span class="pln">
   1.869 +    </span><span class="pun">}</span><span class="pln">
   1.870 +  </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
   1.871 +
   1.872 +  modelEl</span><span class="pun">.</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'change'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.873 +    </span><span class="kwd">if</span><span class="pun">(</span><span class="pln">navigator</span><span class="pun">.</span><span class="pln">getNetworkServices </span><span class="pun">&amp;&amp;</span><span class="pln">
   1.874 +         modelEl</span><span class="pun">.</span><span class="pln">value </span><span class="pun">==</span><span class="pln"> </span><span class="str">"upnp:urn:schemas-upnp-org:service:RenderingControl:1"</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.875 +      navigator</span><span class="pun">.</span><span class="pln">getNetworkServices</span><span class="pun">(</span><span class="pln">modelEl</span><span class="pun">.</span><span class="pln">value</span><span class="pun">,</span><span class="pln"> successCallback</span><span class="pun">,</span><span class="pln"> errorCallback</span><span class="pun">);</span><span class="pln">
   1.876 +    </span><span class="pun">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">modelEl</span><span class="pun">.</span><span class="pln">value </span><span class="pun">==</span><span class="pln"> </span><span class="str">"zeroconf:_mediarenderer._http._tcp"</span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.877 +      debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;Service type is not implemented by this application."</span><span class="pun">;</span><span class="pln">
   1.878 +    </span><span class="pun">}</span><span class="pln"> </span><span class="kwd">else</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.879 +      debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;Service Discovery is not supported!"</span><span class="pun">;</span><span class="pln">
   1.880 +    </span><span class="pun">}</span><span class="pln">
   1.881 +  </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
   1.882 +</span><span class="tag">&lt;/script&gt;</span><span class="pln">
   1.883 +
   1.884 +</span><span class="tag">&lt;script&gt;</span><span class="pln">
   1.885 +  </span><span class="kwd">function</span><span class="pln"> successCallback</span><span class="pun">(</span><span class="pln"> services </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.886 +
   1.887 +  </span><span class="com">// Listen for service push messages</span><span class="pln">
   1.888 +
   1.889 +    services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">addEventListener</span><span class="pun">(</span><span class="str">'message'</span><span class="pun">,</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">(</span><span class="pln"> msg </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.890 +         debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" event received: "</span><span class="pun">;</span><span class="pln">
   1.891 +         debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> msg</span><span class="pun">.</span><span class="pln">data</span><span class="pun">;</span><span class="pln">
   1.892 +    </span><span class="pun">},</span><span class="pln"> </span><span class="kwd">false</span><span class="pun">);</span><span class="pln">
   1.893 +
   1.894 + </span><span class="com">// Send a control signal to mute the service audio</span><span class="pln">
   1.895 +
   1.896 +    </span><span class="kwd">var</span><span class="pln"> svcXhr </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">new</span><span class="pln"> </span><span class="typ">XMLHttpRequest</span><span class="pun">();</span><span class="pln">
   1.897 +    svcXhr</span><span class="pun">.</span><span class="pln">open</span><span class="pun">(</span><span class="str">"POST"</span><span class="pun">,</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">url</span><span class="pun">);</span><span class="pln"> </span><span class="com">// services[0].url and its</span><span class="pln">
   1.898 +                                          </span><span class="com">// subresources have been whitelisted for</span><span class="pln">
   1.899 +                                          </span><span class="com">// cross-site XHR use in this current</span><span class="pln">
   1.900 +                                          </span><span class="com">// browsing context.</span><span class="pln">
   1.901 +
   1.902 +    svcXhr</span><span class="pun">.</span><span class="pln">setRequestHeader</span><span class="pun">(</span><span class="str">'SOAPAction'</span><span class="pun">,</span><span class="pln"> </span><span class="str">'urn:schemas-upnp-org:service:RenderingControl:1#SetMute'</span><span class="pun">);</span><span class="pln">
   1.903 +    svcXhr</span><span class="pun">.</span><span class="pln">setRequestHeader</span><span class="pun">(</span><span class="str">'Content-Type'</span><span class="pun">,</span><span class="pln"> </span><span class="str">'text/xml; charset="utf-8";'</span><span class="pun">);</span><span class="pln">
   1.904 +
   1.905 +    svcXhr</span><span class="pun">.</span><span class="pln">onreadystatechange </span><span class="pun">=</span><span class="pln"> </span><span class="kwd">function</span><span class="pln"> </span><span class="pun">(</span><span class="pln"> response </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.906 +      </span><span class="kwd">if</span><span class="pun">(</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">readyState </span><span class="pun">!=</span><span class="pln"> </span><span class="lit">4</span><span class="pln"> </span><span class="pun">||</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">status </span><span class="pun">!=</span><span class="pln"> </span><span class="lit">200</span><span class="pln"> </span><span class="pun">)</span><span class="pln">
   1.907 +        </span><span class="kwd">return</span><span class="pun">;</span><span class="pln">
   1.908 +      debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" response received: "</span><span class="pun">;</span><span class="pln">
   1.909 +      debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> response</span><span class="pun">.</span><span class="pln">responseXML</span><span class="pun">;</span><span class="pln">
   1.910 +    </span><span class="pun">}</span><span class="pln">
   1.911 +
   1.912 +    </span><span class="com">// Service messaging to mute the provided service</span><span class="pln">
   1.913 +    </span><span class="kwd">var</span><span class="pln"> svcMsg </span><span class="pun">=</span><span class="pln"> </span><span class="str">'&lt;?xml version="1.0" encoding="utf-8"?&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.914 +                 </span><span class="str">'&lt;s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" '</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.915 +                   </span><span class="str">'xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.916 +                   </span><span class="str">'&lt;s:Body&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.917 +                     </span><span class="str">'&lt;u:SetMute xmlns:u="urn:schemas-upnp-org:service:RenderingControl:1"&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.918 +                       </span><span class="str">'&lt;InstanceID&gt;0&lt;/InstanceID&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.919 +                       </span><span class="str">'&lt;Channel&gt;Master&lt;/Channel&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.920 +                       </span><span class="str">'&lt;DesiredMute&gt;true&lt;/DesiredMute&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.921 +                     </span><span class="str">'&lt;/u:SetMute&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.922 +                   </span><span class="str">'&lt;/s:Body&gt;'</span><span class="pln"> </span><span class="pun">+</span><span class="pln">
   1.923 +                 </span><span class="str">'&lt;/s:Envelope&gt;'</span><span class="pun">;</span><span class="pln">
   1.924 +
   1.925 +    svcXhr</span><span class="pun">.</span><span class="pln">send</span><span class="pun">(</span><span class="pln">svcMsg</span><span class="pun">);</span><span class="pln">
   1.926 +    debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;"</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> services</span><span class="pun">[</span><span class="lit">0</span><span class="pun">].</span><span class="pln">name </span><span class="pun">+</span><span class="pln"> </span><span class="str">" request sent: "</span><span class="pun">;</span><span class="pln">
   1.927 +    debug</span><span class="pun">.</span><span class="pln">textContent </span><span class="pun">+=</span><span class="pln"> svcMsg</span><span class="pun">;</span><span class="pln">
   1.928 +  </span><span class="pun">}</span><span class="pln">
   1.929 +
   1.930 +  </span><span class="kwd">function</span><span class="pln"> errorCallback</span><span class="pun">(</span><span class="pln"> error </span><span class="pun">)</span><span class="pln"> </span><span class="pun">{</span><span class="pln">
   1.931 +    debug</span><span class="pun">.</span><span class="pln">innerHTML </span><span class="pun">+=</span><span class="pln"> </span><span class="str">"&lt;br&gt;An error occurred: "</span><span class="pln"> </span><span class="pun">+</span><span class="pln"> error</span><span class="pun">.</span><span class="pln">code</span><span class="pun">;</span><span class="pln">
   1.932 +  </span><span class="pun">}</span><span class="pln">
   1.933 +</span><span class="tag">&lt;/script&gt;</span></pre>
   1.934            </div>
   1.935  
   1.936         </section>
   1.937 @@ -1947,9 +1784,6 @@
   1.938        CableLabs, Opera Software ASA, <abbr title="World Wide Web Consortium">W3C</abbr> Device APIs Working Group, <abbr title="World Wide Web Consortium">W3C</abbr> Web and TV Interest Group, ...</p>
   1.939      </section>
   1.940  
   1.941 -    
   1.942 -
   1.943 -
   1.944  
   1.945  <section class="appendix" id="references"><!--OddPage--><h2><span class="secno">C. </span>References</h2><section id="normative-references"><h3><span class="secno">C.1 </span>Normative references</h3><dl class="bibliography"><dt id="bib-DNS-SD">[DNS-SD]</dt><dd>S. Cheshire; M. Krochmal. <a href="http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt"><cite>DNS-Based Service Discovery.</cite></a> 27 February 2011. IETF Draft. URL: <a href="http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt">http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt</a>
   1.946  </dd><dt id="bib-DOM4">[DOM4]</dt><dd>Anne van Kesteren; Aryeh Gregor; Ms2ger. <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html/"><cite>DOM4.</cite></a> URL: <a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html/">http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html/</a> 
     2.1 --- a/discovery-api/Overview.src.html	Fri Aug 03 15:49:17 2012 +0200
     2.2 +++ b/discovery-api/Overview.src.html	Fri Aug 03 15:58:23 2012 +0200
     2.3 @@ -28,358 +28,6 @@
     2.4        };
     2.5      </script>
     2.6  
     2.7 -    <style type="text/css">
     2.8 -      /**
     2.9 -       * SyntaxHighlighter
    2.10 -       * http://alexgorbatchev.com/SyntaxHighlighter
    2.11 -       *
    2.12 -       * SyntaxHighlighter is donationware. If you are using it, please donate.
    2.13 -       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
    2.14 -       *
    2.15 -       * @version
    2.16 -       * 3.0.83 (July 02 2010)
    2.17 -       *
    2.18 -       * @copyright
    2.19 -       * Copyright (C) 2004-2010 Alex Gorbatchev.
    2.20 -       *
    2.21 -       * @license
    2.22 -       * Dual licensed under the MIT and GPL licenses.
    2.23 -       */
    2.24 -      .syntaxhighlighter a,
    2.25 -      .syntaxhighlighter div,
    2.26 -      .syntaxhighlighter code,
    2.27 -      .syntaxhighlighter table,
    2.28 -      .syntaxhighlighter table td,
    2.29 -      .syntaxhighlighter table tr,
    2.30 -      .syntaxhighlighter table tbody,
    2.31 -      .syntaxhighlighter table thead,
    2.32 -      .syntaxhighlighter table caption,
    2.33 -      .syntaxhighlighter textarea {
    2.34 -        -moz-border-radius: 0 0 0 0 !important;
    2.35 -        -webkit-border-radius: 0 0 0 0 !important;
    2.36 -        background: none !important;
    2.37 -        border: 0 !important;
    2.38 -        bottom: auto !important;
    2.39 -        float: none !important;
    2.40 -        height: auto !important;
    2.41 -        left: auto !important;
    2.42 -        line-height: 1.1em !important;
    2.43 -        margin: 0 !important;
    2.44 -        outline: 0 !important;
    2.45 -        overflow: visible !important;
    2.46 -        padding: 0 !important;
    2.47 -        position: static !important;
    2.48 -        right: auto !important;
    2.49 -        text-align: left !important;
    2.50 -        top: auto !important;
    2.51 -        vertical-align: baseline !important;
    2.52 -        width: auto !important;
    2.53 -        box-sizing: content-box !important;
    2.54 -        font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
    2.55 -        font-weight: normal !important;
    2.56 -        font-style: normal !important;
    2.57 -        font-size: 1em !important;
    2.58 -        min-height: inherit !important;
    2.59 -        min-height: auto !important;
    2.60 -      }
    2.61 -
    2.62 -      .syntaxhighlighter {
    2.63 -        width: 100% !important;
    2.64 -        margin: 1em 0 1em 0 !important;
    2.65 -        position: relative !important;
    2.66 -        overflow: auto !important;
    2.67 -        font-size: 0.8em !important;
    2.68 -      }
    2.69 -      .syntaxhighlighter.source {
    2.70 -        overflow: hidden !important;
    2.71 -      }
    2.72 -      .syntaxhighlighter .bold {
    2.73 -        font-weight: bold !important;
    2.74 -      }
    2.75 -      .syntaxhighlighter .italic {
    2.76 -        font-style: italic !important;
    2.77 -      }
    2.78 -      .syntaxhighlighter .line {
    2.79 -        white-space: pre !important;
    2.80 -      }
    2.81 -      .syntaxhighlighter table {
    2.82 -        width: 100% !important;
    2.83 -      }
    2.84 -      .syntaxhighlighter table caption {
    2.85 -        text-align: left !important;
    2.86 -        padding: .5em 0 0.5em 1em !important;
    2.87 -      }
    2.88 -      .syntaxhighlighter table td.code {
    2.89 -        width: 100% !important;
    2.90 -      }
    2.91 -      .syntaxhighlighter table td.code .container {
    2.92 -        position: relative !important;
    2.93 -      }
    2.94 -      .syntaxhighlighter table td.code .container textarea {
    2.95 -        box-sizing: border-box !important;
    2.96 -        position: absolute !important;
    2.97 -        left: 0 !important;
    2.98 -        top: 0 !important;
    2.99 -        width: 100% !important;
   2.100 -        height: 100% !important;
   2.101 -        border: none !important;
   2.102 -
   2.103 -        padding-left: 1em !important;
   2.104 -        overflow: hidden !important;
   2.105 -        white-space: pre !important;
   2.106 -      }
   2.107 -      .syntaxhighlighter table td.gutter .line {
   2.108 -        text-align: right !important;
   2.109 -        padding: 0 0.5em 0 1em !important;
   2.110 -      }
   2.111 -      .syntaxhighlighter table td.code .line {
   2.112 -        padding: 0 1em !important;
   2.113 -      }
   2.114 -      .syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
   2.115 -        padding-left: 0em !important;
   2.116 -      }
   2.117 -      .syntaxhighlighter.show {
   2.118 -        display: block !important;
   2.119 -      }
   2.120 -      .syntaxhighlighter.collapsed table {
   2.121 -        display: none !important;
   2.122 -      }
   2.123 -      .syntaxhighlighter.collapsed .toolbar {
   2.124 -        padding: 0.1em 0.8em 0em 0.8em !important;
   2.125 -        font-size: 1em !important;
   2.126 -        position: static !important;
   2.127 -        width: auto !important;
   2.128 -        height: auto !important;
   2.129 -      }
   2.130 -      .syntaxhighlighter.collapsed .toolbar span {
   2.131 -        display: inline !important;
   2.132 -        margin-right: 1em !important;
   2.133 -      }
   2.134 -      .syntaxhighlighter.collapsed .toolbar span a {
   2.135 -        padding: 0 !important;
   2.136 -        display: none !important;
   2.137 -      }
   2.138 -      .syntaxhighlighter.collapsed .toolbar span a.expandSource {
   2.139 -        display: inline !important;
   2.140 -      }
   2.141 -      .syntaxhighlighter .toolbar {
   2.142 -        position: absolute !important;
   2.143 -        right: 1px !important;
   2.144 -        top: 1px !important;
   2.145 -        width: 11px !important;
   2.146 -        height: 11px !important;
   2.147 -        font-size: 10px !important;
   2.148 -        z-index: 10 !important;
   2.149 -      }
   2.150 -      .syntaxhighlighter .toolbar span.title {
   2.151 -        display: inline !important;
   2.152 -      }
   2.153 -      .syntaxhighlighter .toolbar a {
   2.154 -        display: block !important;
   2.155 -        text-align: center !important;
   2.156 -        text-decoration: none !important;
   2.157 -        padding-top: 1px !important;
   2.158 -      }
   2.159 -      .syntaxhighlighter .toolbar a.expandSource {
   2.160 -        display: none !important;
   2.161 -      }
   2.162 -      .syntaxhighlighter.ie {
   2.163 -        font-size: .9em !important;
   2.164 -        padding: 1px 0 1px 0 !important;
   2.165 -      }
   2.166 -      .syntaxhighlighter.ie .toolbar {
   2.167 -        line-height: 8px !important;
   2.168 -      }
   2.169 -      .syntaxhighlighter.ie .toolbar a {
   2.170 -        padding-top: 0px !important;
   2.171 -      }
   2.172 -      .syntaxhighlighter.printing .line.alt1 .content,
   2.173 -      .syntaxhighlighter.printing .line.alt2 .content,
   2.174 -      .syntaxhighlighter.printing .line.highlighted .number,
   2.175 -      .syntaxhighlighter.printing .line.highlighted.alt1 .content,
   2.176 -      .syntaxhighlighter.printing .line.highlighted.alt2 .content {
   2.177 -        background: none !important;
   2.178 -      }
   2.179 -      .syntaxhighlighter.printing .line .number {
   2.180 -        color: #bbbbbb !important;
   2.181 -      }
   2.182 -      .syntaxhighlighter.printing .line .content {
   2.183 -        color: black !important;
   2.184 -      }
   2.185 -      .syntaxhighlighter.printing .toolbar {
   2.186 -        display: none !important;
   2.187 -      }
   2.188 -      .syntaxhighlighter.printing a {
   2.189 -        text-decoration: none !important;
   2.190 -      }
   2.191 -      .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
   2.192 -        color: black !important;
   2.193 -      }
   2.194 -      .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
   2.195 -        color: #008200 !important;
   2.196 -      }
   2.197 -      .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
   2.198 -        color: blue !important;
   2.199 -      }
   2.200 -      .syntaxhighlighter.printing .keyword {
   2.201 -        color: #006699 !important;
   2.202 -        font-weight: bold !important;
   2.203 -      }
   2.204 -      .syntaxhighlighter.printing .preprocessor {
   2.205 -        color: gray !important;
   2.206 -      }
   2.207 -      .syntaxhighlighter.printing .variable {
   2.208 -        color: #aa7700 !important;
   2.209 -      }
   2.210 -      .syntaxhighlighter.printing .value {
   2.211 -        color: #009900 !important;
   2.212 -      }
   2.213 -      .syntaxhighlighter.printing .functions {
   2.214 -        color: #ff1493 !important;
   2.215 -      }
   2.216 -      .syntaxhighlighter.printing .constants {
   2.217 -        color: #0066cc !important;
   2.218 -      }
   2.219 -      .syntaxhighlighter.printing .script {
   2.220 -        font-weight: bold !important;
   2.221 -      }
   2.222 -      .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
   2.223 -        color: gray !important;
   2.224 -      }
   2.225 -      .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
   2.226 -        color: #ff1493 !important;
   2.227 -      }
   2.228 -      .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
   2.229 -        color: red !important;
   2.230 -      }
   2.231 -      .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
   2.232 -        color: black !important;
   2.233 -      }
   2.234 -    </style>
   2.235 -    <style type="text/css">
   2.236 -      /**
   2.237 -       * SyntaxHighlighter
   2.238 -       * http://alexgorbatchev.com/SyntaxHighlighter
   2.239 -       *
   2.240 -       * SyntaxHighlighter is donationware. If you are using it, please donate.
   2.241 -       * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
   2.242 -       *
   2.243 -       * @version
   2.244 -       * 3.0.83 (July 02 2010)
   2.245 -       *
   2.246 -       * @copyright
   2.247 -       * Copyright (C) 2004-2010 Alex Gorbatchev.
   2.248 -       *
   2.249 -       * @license
   2.250 -       * Dual licensed under the MIT and GPL licenses.
   2.251 -       */
   2.252 -      .syntaxhighlighter {
   2.253 -        background-color: none !important;
   2.254 -      }
   2.255 -      .syntaxhighlighter .line.alt1 {
   2.256 -        background-color: none !important;
   2.257 -      }
   2.258 -      .syntaxhighlighter .line.alt2 {
   2.259 -        background-color: none !important;
   2.260 -      }
   2.261 -      .syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
   2.262 -        background-color: none !important;
   2.263 -      }
   2.264 -      .syntaxhighlighter .line.highlighted.number {
   2.265 -        color: black !important;
   2.266 -      }
   2.267 -      .syntaxhighlighter table caption {
   2.268 -        color: black !important;
   2.269 -      }
   2.270 -      .syntaxhighlighter .gutter {
   2.271 -        color: #afafaf !important;
   2.272 -      }
   2.273 -      .syntaxhighlighter .gutter .line {
   2.274 -        border-right: 3px solid #6ce26c !important;
   2.275 -      }
   2.276 -      .syntaxhighlighter .gutter .line.highlighted {
   2.277 -        background-color: #6ce26c !important;
   2.278 -        color: white !important;
   2.279 -      }
   2.280 -      .syntaxhighlighter.printing .line .content {
   2.281 -        border: none !important;
   2.282 -      }
   2.283 -      .syntaxhighlighter.collapsed {
   2.284 -        overflow: visible !important;
   2.285 -      }
   2.286 -      .syntaxhighlighter.collapsed .toolbar {
   2.287 -        color: blue !important;
   2.288 -        background: none !important;
   2.289 -        border: 1px solid #6ce26c !important;
   2.290 -      }
   2.291 -      .syntaxhighlighter.collapsed .toolbar a {
   2.292 -        color: blue !important;
   2.293 -      }
   2.294 -      .syntaxhighlighter.collapsed .toolbar a:hover {
   2.295 -        color: red !important;
   2.296 -      }
   2.297 -      .syntaxhighlighter .toolbar {
   2.298 -        color: white !important;
   2.299 -        background: #6ce26c !important;
   2.300 -        border: none !important;
   2.301 -      }
   2.302 -      .syntaxhighlighter .toolbar a {
   2.303 -        color: white !important;
   2.304 -      }
   2.305 -      .syntaxhighlighter .toolbar a:hover {
   2.306 -        color: black !important;
   2.307 -      }
   2.308 -      .syntaxhighlighter .plain, .syntaxhighlighter .plain a {
   2.309 -        color: black !important;
   2.310 -      }
   2.311 -      .syntaxhighlighter .comments, .syntaxhighlighter .comments a {
   2.312 -        color: #008200 !important;
   2.313 -      }
   2.314 -      .syntaxhighlighter .string, .syntaxhighlighter .string a {
   2.315 -        color: blue !important;
   2.316 -      }
   2.317 -      .syntaxhighlighter .keyword {
   2.318 -        color: #006699 !important;
   2.319 -      }
   2.320 -      .syntaxhighlighter .preprocessor {
   2.321 -        color: gray !important;
   2.322 -      }
   2.323 -      .syntaxhighlighter .variable {
   2.324 -        color: #aa7700 !important;
   2.325 -      }
   2.326 -      .syntaxhighlighter .value {
   2.327 -        color: #009900 !important;
   2.328 -      }
   2.329 -      .syntaxhighlighter .functions {
   2.330 -        color: #ff1493 !important;
   2.331 -      }
   2.332 -      .syntaxhighlighter .constants {
   2.333 -        color: #0066cc !important;
   2.334 -      }
   2.335 -      .syntaxhighlighter .script {
   2.336 -        font-weight: bold !important;
   2.337 -        color: #006699 !important;
   2.338 -        background-color: none !important;
   2.339 -      }
   2.340 -      .syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
   2.341 -        color: gray !important;
   2.342 -      }
   2.343 -      .syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
   2.344 -        color: #ff1493 !important;
   2.345 -      }
   2.346 -      .syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
   2.347 -        color: red !important;
   2.348 -      }
   2.349 -
   2.350 -      .syntaxhighlighter .keyword {
   2.351 -        font-weight: bold !important;
   2.352 -      }
   2.353 -    </style>
   2.354 -    <script src="tools/syntaxhighlighter/js/shCore.js" type="text/javascript" class='remove'></script>
   2.355 -    <script src="tools/syntaxhighlighter/js/shAutoloader.js" type="text/javascript" class='remove'></script>
   2.356 -    <script src="tools/syntaxhighlighter/js/shBrushXml.js" type="text/javascript" class='remove'></script>
   2.357 -    <script src="tools/syntaxhighlighter/js/shBrushJScript.js" type="text/javascript" class='remove'></script>
   2.358 -
   2.359      <script src='http://www.w3.org/Tools/respec/respec-w3c-common' type="text/javascript" class='remove' async></script>
   2.360      <style type="text/css">
   2.361        /* Custom CSS optimizations (Richard Tibbett) */
   2.362 @@ -413,7 +61,7 @@
   2.363    <body>
   2.364      <section id='abstract'>
   2.365        <p>
   2.366 -        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.367 +        This specification defines a mechanism for an HTML document to discover and subsequently communicate with <abbr title="Hypertext Transfer Protocol">HTTP</abbr>-based services
   2.368          advertised via common discovery protocols within a user's network.
   2.369        </p>
   2.370      </section>
   2.371 @@ -432,7 +80,7 @@
   2.372        <a href="#navigatornetworkservice"><code>NavigatorNetworkService</code></a> interface.</p>
   2.373  
   2.374        <p>
   2.375 -         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.376 +         Using this <abbr title="Application Programming Interface">API</abbr> consists of requesting a well-known service type, known by developers and advertised by Local-networked Devices. User authorization, where the user connects the web page to one or more discovered services,
   2.377           is expected before the web page is able to interact with any Local-networked Services.
   2.378        </p>
   2.379  
   2.380 @@ -460,7 +108,7 @@
   2.381        <div class="example">
   2.382         <p>Example of requesting a DNS-SD advertised service:</p>
   2.383         <hr />
   2.384 -       <pre class="brush:js">function showServices( services ) {
   2.385 +       <pre class="highlight">function showServices( services ) {
   2.386    // Show a list of all the services provided to the web page
   2.387    for(var i = 0, l = services.length; i < l; i++) console.log( services[i].name );
   2.388  }
   2.389 @@ -471,7 +119,7 @@
   2.390        <div class="example">
   2.391          <p>Example of requesting a UPnP advertised service, also handling error conditions:</p>
   2.392          <hr />
   2.393 -        <pre class="brush:js">function showServices( services ) {
   2.394 +        <pre class="highlight">function showServices( services ) {
   2.395    // Show a list of all the services provided to the web page
   2.396    for(var i = 0, l = services.length; i < l; i++) console.log( services[i].name );
   2.397  }
   2.398 @@ -486,7 +134,7 @@
   2.399        <div class="example">
   2.400          <p>Example of requesting either a DNS-SD or UPnP advertised service:</p>
   2.401          <hr />
   2.402 -        <pre class="brush:js">function showServices( services ) {
   2.403 +        <pre class="highlight">function showServices( services ) {
   2.404    // Show a list of all the services provided to the web page (+ service type)
   2.405    for(var i = 0, l = services.length; i < l; i++)
   2.406       console.log( services[i].name + '(' + services[i].type + ')' );
   2.407 @@ -756,7 +404,7 @@
   2.408  
   2.409                 <ol class="rule">
   2.410                    <li>
   2.411 -                     Add the <var>service</var>'s <code>url</code> parameter to the <a>entry script origin's <acronym title="Uniform Resource Locator">URL</acronym> whitelist</a>.
   2.412 +                     Add the <var>service</var>'s <code>url</code> parameter to the <a>entry script origin's <abbr title="Uniform Resource Locator">URL</abbr> whitelist</a>.
   2.413                    </li>
   2.414                    <li>
   2.415                      If <var>service</var> was originally created from a UPnP discovery process and the <var>service</var>'s <code>eventsUrl</code> parameter is not empty then <a>setup a UPnP Events Subscription</a> for <var>service</var>.
   2.416 @@ -1271,7 +919,7 @@
   2.417              <h2>Service Discovery</h2>
   2.418  
   2.419        <p>
   2.420 -         A <a>user agent</a> conforming to this specification MAY implement <acronym title="Simple Service Discovery Protocol">SSDP</acronym> [[!UPNP-DEVICEARCH11]] and Zeroconf [[!ZEROCONF]] service discovery mechanisms
   2.421 +         A <a>user agent</a> conforming to this specification MAY implement <abbr title="Simple Service Discovery Protocol">SSDP</abbr> [[!UPNP-DEVICEARCH11]] and Zeroconf [[!ZEROCONF]] service discovery mechanisms
   2.422           to enable Web pages to request and connect with HTTP services running on networked devices, discovered via either mechanism, through this API. When a <a>user agent</a> implements either of these service discovery mechanisms, then it MUST conform to the corresponding algorithms provided in this section of the specification.
   2.423        </p>
   2.424        <p>
   2.425 @@ -1292,10 +940,10 @@
   2.426        </p>
   2.427  
   2.428              <section>
   2.429 -         <h4>Zeroconf (<acronym title="Multicast DNS">mDNS</acronym> + <acronym title="Domain Name System">DNS</acronym>-<acronym title="Service Discovery">SD</acronym>)</h4>
   2.430 +         <h4>Zeroconf (<abbr title="Multicast DNS">mDNS</abbr> + <abbr title="Domain Name System">DNS</abbr>-<abbr title="Service Discovery">SD</abbr>)</h4>
   2.431  
   2.432           <p>
   2.433 -            For each DNS response received from a user-agent-initiated Multicast DNS Browse for <acronym title="DNS Pointer Record">PTR</acronym> records with the name <code>_services._dns-sd._udp</code> on the resolved recommended automatic browsing
   2.434 +            For each DNS response received from a user-agent-initiated Multicast DNS Browse for <abbr title="DNS Pointer Record">PTR</abbr> records with the name <code>_services._dns-sd._udp</code> on the resolved recommended automatic browsing
   2.435     domain [[!MDNS]], the <a>user agent</a> MUST run the following steps:
   2.436           </p>
   2.437  
   2.438 @@ -1367,7 +1015,7 @@
   2.439        </section>
   2.440  
   2.441        <section>
   2.442 -         <h5>Universal Plug-and-Play (<acronym title="Universal Plug-and-Play">UPnP</acronym>)</h5>
   2.443 +         <h5>Universal Plug-and-Play (<abbr title="Universal Plug-and-Play">UPnP</abbr>)</h5>
   2.444  
   2.445           <p>
   2.446              For each SSDP Presence Announcement [[!UPNP-DEVICEARCH11]] - a HTTP NOTIFY request - received from a user-agent-initiated SSDP Discovery Request [[!UPNP-DEVICEARCH11]], the <a>user agent</a> MUST run the following steps:
   2.447 @@ -1698,7 +1346,7 @@
   2.448              <p>The button is re-enabled only when the connected network service disconnects for whatever reason (the service becomes unavailable on the network, the user disconnects from their current network or the user revokes access to the service from the current web page). At this point the user can re-click the button to select a new network service to connect to the web page and the above steps are repeated.</p>
   2.449              <p>The provided service type identifier and service interaction used in this example is based on the well-defined service type and messaging format supported by the <a href="http://xbmc.org/about/">XBMC Media Server</a>. </p>
   2.450              <hr />
   2.451 -            <pre class="brush:js">&lt;input type="button" value="Start" onclick="start()" id="startBtn"/&gt;
   2.452 +            <pre class="highlight">&lt;input type="button" value="Start" onclick="start()" id="startBtn"/&gt;
   2.453  &lt;div id="debugconsole">&lt;/div>
   2.454  
   2.455  &lt;script>
   2.456 @@ -1768,7 +1416,7 @@
   2.457               <br /><br />Once the user has authorized the device, the web page sends a simple mute command according to the messaging format supported by the device.
   2.458              </p>
   2.459              <hr />
   2.460 -            <pre class="brush:js">&lt;select name="make" id="make"&gt;
   2.461 +            <pre class="highlight">&lt;select name="make" id="make"&gt;
   2.462    &lt;option selected="selected" disabled="disabled"&gt;Select make&lt;/option&gt;
   2.463    &lt;option&gt;Sony&lt;/option&gt;
   2.464    &lt;option&gt;Philips&lt;/option&gt;
   2.465 @@ -1885,14 +1533,5 @@
   2.466        <br /></br />
   2.467        CableLabs, Opera Software ASA, W3C Device APIs Working Group, W3C Web and TV Interest Group, ...</p>
   2.468      </section>
   2.469 -
   2.470 -    <script class='remove'>
   2.471 -    if(SyntaxHighlighter) {
   2.472 -      SyntaxHighlighter.defaults['gutter'] = false;
   2.473 -      SyntaxHighlighter.defaults['toolbar'] = false;
   2.474 -      SyntaxHighlighter.all()
   2.475 -    }
   2.476 -    </script>
   2.477 -
   2.478  </body>
   2.479  </html>
     3.1 --- a/discovery-api/js/core/base-runner.js	Fri Aug 03 15:49:17 2012 +0200
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,7465 +0,0 @@
     3.4 -
     3.5 -// XXX
     3.6 -//  This is very rough, it needs more useful stuff
     3.7 -
     3.8 -if (!window.console) {
     3.9 -    var fallback = window.opera ? window.opera.postError : function (str) {};
    3.10 -    window.console = { log: fallback, warn: fallback, error: fallback };
    3.11 -}
    3.12 -
    3.13 -(function (GLOBAL) {
    3.14 -    GLOBAL.warn = function (str) {
    3.15 -        console.warn("W: " + str);
    3.16 -    };
    3.17 -
    3.18 -    GLOBAL.error = function (str) {
    3.19 -        console.error("E: " + str);
    3.20 -    };
    3.21 -
    3.22 -    GLOBAL.progress = function (str) {
    3.23 -        if (console) console.log("P: " + str);
    3.24 -    };
    3.25 -})(this);
    3.26 -
    3.27 -
    3.28 -define(
    3.29 -    [],
    3.30 -    function () {
    3.31 -        return {
    3.32 -            runAll:    function (plugs) {
    3.33 -                // the first in the plugs is going to be us
    3.34 -                plugs.shift();
    3.35 -                if (!respecConfig) respecConfig = {};
    3.36 -
    3.37 -                // the base URL is used by some modules
    3.38 -                var $scripts = $("script"),
    3.39 -                    baseUrl = "";
    3.40 -                $scripts.each(function (i, s) {
    3.41 -                    var src = s.getAttribute("src");
    3.42 -                    if (!src || !$(s).hasClass("remove")) return;
    3.43 -                    if (/\/js\//.test(src)) baseUrl = src.replace(/\/js\/.*/, "\/js\/")
    3.44 -                });
    3.45 -                respecConfig.respecBase = baseUrl;
    3.46 -
    3.47 -                var pipeline;
    3.48 -                pipeline = function () {
    3.49 -                    if (!plugs.length) return;
    3.50 -                    var plug = plugs.shift();
    3.51 -                    if (plug.run) plug.run.call(plug, respecConfig, document, pipeline);
    3.52 -                    else pipeline();
    3.53 -                };
    3.54 -                pipeline();
    3.55 -                if (respecConfig.afterEnd) respecConfig.afterEnd.apply(GLOBAL, Array.prototype.slice.call(arguments));
    3.56 -            },
    3.57 -            ieDummy: 1
    3.58 -        };
    3.59 -    }
    3.60 -);
    3.61 -
    3.62 -
    3.63 -/*!
    3.64 - * jQuery JavaScript Library v1.4.4
    3.65 - * http://jquery.com/
    3.66 - *
    3.67 - * Copyright 2010, John Resig
    3.68 - * Dual licensed under the MIT or GPL Version 2 licenses.
    3.69 - * http://jquery.org/license
    3.70 - *
    3.71 - * Includes Sizzle.js
    3.72 - * http://sizzlejs.com/
    3.73 - * Copyright 2010, The Dojo Foundation
    3.74 - * Released under the MIT, BSD, and GPL Licenses.
    3.75 - *
    3.76 - * Date: Thu Nov 11 19:04:53 2010 -0500
    3.77 - */
    3.78 -(function( window, undefined ) {
    3.79 -
    3.80 -// Use the correct document accordingly with window argument (sandbox)
    3.81 -var document = window.document;
    3.82 -var jQuery = (function() {
    3.83 -
    3.84 -// Define a local copy of jQuery
    3.85 -var jQuery = function( selector, context ) {
    3.86 -		// The jQuery object is actually just the init constructor 'enhanced'
    3.87 -		return new jQuery.fn.init( selector, context );
    3.88 -	},
    3.89 -
    3.90 -	// Map over jQuery in case of overwrite
    3.91 -	_jQuery = window.jQuery,
    3.92 -
    3.93 -	// Map over the $ in case of overwrite
    3.94 -	_$ = window.$,
    3.95 -
    3.96 -	// A central reference to the root jQuery(document)
    3.97 -	rootjQuery,
    3.98 -
    3.99 -	// A simple way to check for HTML strings or ID strings
   3.100 -	// (both of which we optimize for)
   3.101 -	quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,
   3.102 -
   3.103 -	// Is it a simple selector
   3.104 -	isSimple = /^.[^:#\[\.,]*$/,
   3.105 -
   3.106 -	// Check if a string has a non-whitespace character in it
   3.107 -	rnotwhite = /\S/,
   3.108 -	rwhite = /\s/,
   3.109 -
   3.110 -	// Used for trimming whitespace
   3.111 -	trimLeft = /^\s+/,
   3.112 -	trimRight = /\s+$/,
   3.113 -
   3.114 -	// Check for non-word characters
   3.115 -	rnonword = /\W/,
   3.116 -
   3.117 -	// Check for digits
   3.118 -	rdigit = /\d/,
   3.119 -
   3.120 -	// Match a standalone tag
   3.121 -	rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
   3.122 -
   3.123 -	// JSON RegExp
   3.124 -	rvalidchars = /^[\],:{}\s]*$/,
   3.125 -	rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
   3.126 -	rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
   3.127 -	rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
   3.128 -
   3.129 -	// Useragent RegExp
   3.130 -	rwebkit = /(webkit)[ \/]([\w.]+)/,
   3.131 -	ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
   3.132 -	rmsie = /(msie) ([\w.]+)/,
   3.133 -	rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
   3.134 -
   3.135 -	// Keep a UserAgent string for use with jQuery.browser
   3.136 -	userAgent = navigator.userAgent,
   3.137 -
   3.138 -	// For matching the engine and version of the browser
   3.139 -	browserMatch,
   3.140 -	
   3.141 -	// Has the ready events already been bound?
   3.142 -	readyBound = false,
   3.143 -	
   3.144 -	// The functions to execute on DOM ready
   3.145 -	readyList = [],
   3.146 -
   3.147 -	// The ready event handler
   3.148 -	DOMContentLoaded,
   3.149 -
   3.150 -	// Save a reference to some core methods
   3.151 -	toString = Object.prototype.toString,
   3.152 -	hasOwn = Object.prototype.hasOwnProperty,
   3.153 -	push = Array.prototype.push,
   3.154 -	slice = Array.prototype.slice,
   3.155 -	trim = String.prototype.trim,
   3.156 -	indexOf = Array.prototype.indexOf,
   3.157 -	
   3.158 -	// [[Class]] -> type pairs
   3.159 -	class2type = {};
   3.160 -
   3.161 -jQuery.fn = jQuery.prototype = {
   3.162 -	init: function( selector, context ) {
   3.163 -		var match, elem, ret, doc;
   3.164 -
   3.165 -		// Handle $(""), $(null), or $(undefined)
   3.166 -		if ( !selector ) {
   3.167 -			return this;
   3.168 -		}
   3.169 -
   3.170 -		// Handle $(DOMElement)
   3.171 -		if ( selector.nodeType ) {
   3.172 -			this.context = this[0] = selector;
   3.173 -			this.length = 1;
   3.174 -			return this;
   3.175 -		}
   3.176 -		
   3.177 -		// The body element only exists once, optimize finding it
   3.178 -		if ( selector === "body" && !context && document.body ) {
   3.179 -			this.context = document;
   3.180 -			this[0] = document.body;
   3.181 -			this.selector = "body";
   3.182 -			this.length = 1;
   3.183 -			return this;
   3.184 -		}
   3.185 -
   3.186 -		// Handle HTML strings
   3.187 -		if ( typeof selector === "string" ) {
   3.188 -			// Are we dealing with HTML string or an ID?
   3.189 -			match = quickExpr.exec( selector );
   3.190 -
   3.191 -			// Verify a match, and that no context was specified for #id
   3.192 -			if ( match && (match[1] || !context) ) {
   3.193 -
   3.194 -				// HANDLE: $(html) -> $(array)
   3.195 -				if ( match[1] ) {
   3.196 -					doc = (context ? context.ownerDocument || context : document);
   3.197 -
   3.198 -					// If a single string is passed in and it's a single tag
   3.199 -					// just do a createElement and skip the rest
   3.200 -					ret = rsingleTag.exec( selector );
   3.201 -
   3.202 -					if ( ret ) {
   3.203 -						if ( jQuery.isPlainObject( context ) ) {
   3.204 -							selector = [ document.createElement( ret[1] ) ];
   3.205 -							jQuery.fn.attr.call( selector, context, true );
   3.206 -
   3.207 -						} else {
   3.208 -							selector = [ doc.createElement( ret[1] ) ];
   3.209 -						}
   3.210 -
   3.211 -					} else {
   3.212 -						ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
   3.213 -						selector = (ret.cacheable ? ret.fragment.cloneNode(true) : ret.fragment).childNodes;
   3.214 -					}
   3.215 -					
   3.216 -					return jQuery.merge( this, selector );
   3.217 -					
   3.218 -				// HANDLE: $("#id")
   3.219 -				} else {
   3.220 -					elem = document.getElementById( match[2] );
   3.221 -
   3.222 -					// Check parentNode to catch when Blackberry 4.6 returns
   3.223 -					// nodes that are no longer in the document #6963
   3.224 -					if ( elem && elem.parentNode ) {
   3.225 -						// Handle the case where IE and Opera return items
   3.226 -						// by name instead of ID
   3.227 -						if ( elem.id !== match[2] ) {
   3.228 -							return rootjQuery.find( selector );
   3.229 -						}
   3.230 -
   3.231 -						// Otherwise, we inject the element directly into the jQuery object
   3.232 -						this.length = 1;
   3.233 -						this[0] = elem;
   3.234 -					}
   3.235 -
   3.236 -					this.context = document;
   3.237 -					this.selector = selector;
   3.238 -					return this;
   3.239 -				}
   3.240 -
   3.241 -			// HANDLE: $("TAG")
   3.242 -			} else if ( !context && !rnonword.test( selector ) ) {
   3.243 -				this.selector = selector;
   3.244 -				this.context = document;
   3.245 -				selector = document.getElementsByTagName( selector );
   3.246 -				return jQuery.merge( this, selector );
   3.247 -
   3.248 -			// HANDLE: $(expr, $(...))
   3.249 -			} else if ( !context || context.jquery ) {
   3.250 -				return (context || rootjQuery).find( selector );
   3.251 -
   3.252 -			// HANDLE: $(expr, context)
   3.253 -			// (which is just equivalent to: $(context).find(expr)
   3.254 -			} else {
   3.255 -				return jQuery( context ).find( selector );
   3.256 -			}
   3.257 -
   3.258 -		// HANDLE: $(function)
   3.259 -		// Shortcut for document ready
   3.260 -		} else if ( jQuery.isFunction( selector ) ) {
   3.261 -			return rootjQuery.ready( selector );
   3.262 -		}
   3.263 -
   3.264 -		if (selector.selector !== undefined) {
   3.265 -			this.selector = selector.selector;
   3.266 -			this.context = selector.context;
   3.267 -		}
   3.268 -
   3.269 -		return jQuery.makeArray( selector, this );
   3.270 -	},
   3.271 -
   3.272 -	// Start with an empty selector
   3.273 -	selector: "",
   3.274 -
   3.275 -	// The current version of jQuery being used
   3.276 -	jquery: "1.4.4",
   3.277 -
   3.278 -	// The default length of a jQuery object is 0
   3.279 -	length: 0,
   3.280 -
   3.281 -	// The number of elements contained in the matched element set
   3.282 -	size: function() {
   3.283 -		return this.length;
   3.284 -	},
   3.285 -
   3.286 -	toArray: function() {
   3.287 -		return slice.call( this, 0 );
   3.288 -	},
   3.289 -
   3.290 -	// Get the Nth element in the matched element set OR
   3.291 -	// Get the whole matched element set as a clean array
   3.292 -	get: function( num ) {
   3.293 -		return num == null ?
   3.294 -
   3.295 -			// Return a 'clean' array
   3.296 -			this.toArray() :
   3.297 -
   3.298 -			// Return just the object
   3.299 -			( num < 0 ? this.slice(num)[ 0 ] : this[ num ] );
   3.300 -	},
   3.301 -
   3.302 -	// Take an array of elements and push it onto the stack
   3.303 -	// (returning the new matched element set)
   3.304 -	pushStack: function( elems, name, selector ) {
   3.305 -		// Build a new jQuery matched element set
   3.306 -		var ret = jQuery();
   3.307 -
   3.308 -		if ( jQuery.isArray( elems ) ) {
   3.309 -			push.apply( ret, elems );
   3.310 -		
   3.311 -		} else {
   3.312 -			jQuery.merge( ret, elems );
   3.313 -		}
   3.314 -
   3.315 -		// Add the old object onto the stack (as a reference)
   3.316 -		ret.prevObject = this;
   3.317 -
   3.318 -		ret.context = this.context;
   3.319 -
   3.320 -		if ( name === "find" ) {
   3.321 -			ret.selector = this.selector + (this.selector ? " " : "") + selector;
   3.322 -		} else if ( name ) {
   3.323 -			ret.selector = this.selector + "." + name + "(" + selector + ")";
   3.324 -		}
   3.325 -
   3.326 -		// Return the newly-formed element set
   3.327 -		return ret;
   3.328 -	},
   3.329 -
   3.330 -	// Execute a callback for every element in the matched set.
   3.331 -	// (You can seed the arguments with an array of args, but this is
   3.332 -	// only used internally.)
   3.333 -	each: function( callback, args ) {
   3.334 -		return jQuery.each( this, callback, args );
   3.335 -	},
   3.336 -	
   3.337 -	ready: function( fn ) {
   3.338 -		// Attach the listeners
   3.339 -		jQuery.bindReady();
   3.340 -
   3.341 -		// If the DOM is already ready
   3.342 -		if ( jQuery.isReady ) {
   3.343 -			// Execute the function immediately
   3.344 -			fn.call( document, jQuery );
   3.345 -
   3.346 -		// Otherwise, remember the function for later
   3.347 -		} else if ( readyList ) {
   3.348 -			// Add the function to the wait list
   3.349 -			readyList.push( fn );
   3.350 -		}
   3.351 -
   3.352 -		return this;
   3.353 -	},
   3.354 -	
   3.355 -	eq: function( i ) {
   3.356 -		return i === -1 ?
   3.357 -			this.slice( i ) :
   3.358 -			this.slice( i, +i + 1 );
   3.359 -	},
   3.360 -
   3.361 -	first: function() {
   3.362 -		return this.eq( 0 );
   3.363 -	},
   3.364 -
   3.365 -	last: function() {
   3.366 -		return this.eq( -1 );
   3.367 -	},
   3.368 -
   3.369 -	slice: function() {
   3.370 -		return this.pushStack( slice.apply( this, arguments ),
   3.371 -			"slice", slice.call(arguments).join(",") );
   3.372 -	},
   3.373 -
   3.374 -	map: function( callback ) {
   3.375 -		return this.pushStack( jQuery.map(this, function( elem, i ) {
   3.376 -			return callback.call( elem, i, elem );
   3.377 -		}));
   3.378 -	},
   3.379 -	
   3.380 -	end: function() {
   3.381 -		return this.prevObject || jQuery(null);
   3.382 -	},
   3.383 -
   3.384 -	// For internal use only.
   3.385 -	// Behaves like an Array's method, not like a jQuery method.
   3.386 -	push: push,
   3.387 -	sort: [].sort,
   3.388 -	splice: [].splice
   3.389 -};
   3.390 -
   3.391 -// Give the init function the jQuery prototype for later instantiation
   3.392 -jQuery.fn.init.prototype = jQuery.fn;
   3.393 -
   3.394 -jQuery.extend = jQuery.fn.extend = function() {
   3.395 -	 var options, name, src, copy, copyIsArray, clone,
   3.396 -		target = arguments[0] || {},
   3.397 -		i = 1,
   3.398 -		length = arguments.length,
   3.399 -		deep = false;
   3.400 -
   3.401 -	// Handle a deep copy situation
   3.402 -	if ( typeof target === "boolean" ) {
   3.403 -		deep = target;
   3.404 -		target = arguments[1] || {};
   3.405 -		// skip the boolean and the target
   3.406 -		i = 2;
   3.407 -	}
   3.408 -
   3.409 -	// Handle case when target is a string or something (possible in deep copy)
   3.410 -	if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
   3.411 -		target = {};
   3.412 -	}
   3.413 -
   3.414 -	// extend jQuery itself if only one argument is passed
   3.415 -	if ( length === i ) {
   3.416 -		target = this;
   3.417 -		--i;
   3.418 -	}
   3.419 -
   3.420 -	for ( ; i < length; i++ ) {
   3.421 -		// Only deal with non-null/undefined values
   3.422 -		if ( (options = arguments[ i ]) != null ) {
   3.423 -			// Extend the base object
   3.424 -			for ( name in options ) {
   3.425 -				src = target[ name ];
   3.426 -				copy = options[ name ];
   3.427 -
   3.428 -				// Prevent never-ending loop
   3.429 -				if ( target === copy ) {
   3.430 -					continue;
   3.431 -				}
   3.432 -
   3.433 -				// Recurse if we're merging plain objects or arrays
   3.434 -				if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
   3.435 -					if ( copyIsArray ) {
   3.436 -						copyIsArray = false;
   3.437 -						clone = src && jQuery.isArray(src) ? src : [];
   3.438 -
   3.439 -					} else {
   3.440 -						clone = src && jQuery.isPlainObject(src) ? src : {};
   3.441 -					}
   3.442 -
   3.443 -					// Never move original objects, clone them
   3.444 -					target[ name ] = jQuery.extend( deep, clone, copy );
   3.445 -
   3.446 -				// Don't bring in undefined values
   3.447 -				} else if ( copy !== undefined ) {
   3.448 -					target[ name ] = copy;
   3.449 -				}
   3.450 -			}
   3.451 -		}
   3.452 -	}
   3.453 -
   3.454 -	// Return the modified object
   3.455 -	return target;
   3.456 -};
   3.457 -
   3.458 -jQuery.extend({
   3.459 -	noConflict: function( deep ) {
   3.460 -		window.$ = _$;
   3.461 -
   3.462 -		if ( deep ) {
   3.463 -			window.jQuery = _jQuery;
   3.464 -		}
   3.465 -
   3.466 -		return jQuery;
   3.467 -	},
   3.468 -	
   3.469 -	// Is the DOM ready to be used? Set to true once it occurs.
   3.470 -	isReady: false,
   3.471 -
   3.472 -	// A counter to track how many items to wait for before
   3.473 -	// the ready event fires. See #6781
   3.474 -	readyWait: 1,
   3.475 -	
   3.476 -	// Handle when the DOM is ready
   3.477 -	ready: function( wait ) {
   3.478 -		// A third-party is pushing the ready event forwards
   3.479 -		if ( wait === true ) {
   3.480 -			jQuery.readyWait--;
   3.481 -		}
   3.482 -
   3.483 -		// Make sure that the DOM is not already loaded
   3.484 -		if ( !jQuery.readyWait || (wait !== true && !jQuery.isReady) ) {
   3.485 -			// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
   3.486 -			if ( !document.body ) {
   3.487 -				return setTimeout( jQuery.ready, 1 );
   3.488 -			}
   3.489 -
   3.490 -			// Remember that the DOM is ready
   3.491 -			jQuery.isReady = true;
   3.492 -
   3.493 -			// If a normal DOM Ready event fired, decrement, and wait if need be
   3.494 -			if ( wait !== true && --jQuery.readyWait > 0 ) {
   3.495 -				return;
   3.496 -			}
   3.497 -
   3.498 -			// If there are functions bound, to execute
   3.499 -			if ( readyList ) {
   3.500 -				// Execute all of them
   3.501 -				var fn,
   3.502 -					i = 0,
   3.503 -					ready = readyList;
   3.504 -
   3.505 -				// Reset the list of functions
   3.506 -				readyList = null;
   3.507 -
   3.508 -				while ( (fn = ready[ i++ ]) ) {
   3.509 -					fn.call( document, jQuery );
   3.510 -				}
   3.511 -
   3.512 -				// Trigger any bound ready events
   3.513 -				if ( jQuery.fn.trigger ) {
   3.514 -					jQuery( document ).trigger( "ready" ).unbind( "ready" );
   3.515 -				}
   3.516 -			}
   3.517 -		}
   3.518 -	},
   3.519 -	
   3.520 -	bindReady: function() {
   3.521 -		if ( readyBound ) {
   3.522 -			return;
   3.523 -		}
   3.524 -
   3.525 -		readyBound = true;
   3.526 -
   3.527 -		// Catch cases where $(document).ready() is called after the
   3.528 -		// browser event has already occurred.
   3.529 -		if ( document.readyState === "complete" ) {
   3.530 -			// Handle it asynchronously to allow scripts the opportunity to delay ready
   3.531 -			return setTimeout( jQuery.ready, 1 );
   3.532 -		}
   3.533 -
   3.534 -		// Mozilla, Opera and webkit nightlies currently support this event
   3.535 -		if ( document.addEventListener ) {
   3.536 -			// Use the handy event callback
   3.537 -			document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
   3.538 -			
   3.539 -			// A fallback to window.onload, that will always work
   3.540 -			window.addEventListener( "load", jQuery.ready, false );
   3.541 -
   3.542 -		// If IE event model is used
   3.543 -		} else if ( document.attachEvent ) {
   3.544 -			// ensure firing before onload,
   3.545 -			// maybe late but safe also for iframes
   3.546 -			document.attachEvent("onreadystatechange", DOMContentLoaded);
   3.547 -			
   3.548 -			// A fallback to window.onload, that will always work
   3.549 -			window.attachEvent( "onload", jQuery.ready );
   3.550 -
   3.551 -			// If IE and not a frame
   3.552 -			// continually check to see if the document is ready
   3.553 -			var toplevel = false;
   3.554 -
   3.555 -			try {
   3.556 -				toplevel = window.frameElement == null;
   3.557 -			} catch(e) {}
   3.558 -
   3.559 -			if ( document.documentElement.doScroll && toplevel ) {
   3.560 -				doScrollCheck();
   3.561 -			}
   3.562 -		}
   3.563 -	},
   3.564 -
   3.565 -	// See test/unit/core.js for details concerning isFunction.
   3.566 -	// Since version 1.3, DOM methods and functions like alert
   3.567 -	// aren't supported. They return false on IE (#2968).
   3.568 -	isFunction: function( obj ) {
   3.569 -		return jQuery.type(obj) === "function";
   3.570 -	},
   3.571 -
   3.572 -	isArray: Array.isArray || function( obj ) {
   3.573 -		return jQuery.type(obj) === "array";
   3.574 -	},
   3.575 -
   3.576 -	// A crude way of determining if an object is a window
   3.577 -	isWindow: function( obj ) {
   3.578 -		return obj && typeof obj === "object" && "setInterval" in obj;
   3.579 -	},
   3.580 -
   3.581 -	isNaN: function( obj ) {
   3.582 -		return obj == null || !rdigit.test( obj ) || isNaN( obj );
   3.583 -	},
   3.584 -
   3.585 -	type: function( obj ) {
   3.586 -		return obj == null ?
   3.587 -			String( obj ) :
   3.588 -			class2type[ toString.call(obj) ] || "object";
   3.589 -	},
   3.590 -
   3.591 -	isPlainObject: function( obj ) {
   3.592 -		// Must be an Object.
   3.593 -		// Because of IE, we also have to check the presence of the constructor property.
   3.594 -		// Make sure that DOM nodes and window objects don't pass through, as well
   3.595 -		if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
   3.596 -			return false;
   3.597 -		}
   3.598 -		
   3.599 -		// Not own constructor property must be Object
   3.600 -		if ( obj.constructor &&
   3.601 -			!hasOwn.call(obj, "constructor") &&
   3.602 -			!hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
   3.603 -			return false;
   3.604 -		}
   3.605 -		
   3.606 -		// Own properties are enumerated firstly, so to speed up,
   3.607 -		// if last one is own, then all properties are own.
   3.608 -	
   3.609 -		var key;
   3.610 -		for ( key in obj ) {}
   3.611 -		
   3.612 -		return key === undefined || hasOwn.call( obj, key );
   3.613 -	},
   3.614 -
   3.615 -	isEmptyObject: function( obj ) {
   3.616 -		for ( var name in obj ) {
   3.617 -			return false;
   3.618 -		}
   3.619 -		return true;
   3.620 -	},
   3.621 -	
   3.622 -	error: function( msg ) {
   3.623 -		throw msg;
   3.624 -	},
   3.625 -	
   3.626 -	parseJSON: function( data ) {
   3.627 -		if ( typeof data !== "string" || !data ) {
   3.628 -			return null;
   3.629 -		}
   3.630 -
   3.631 -		// Make sure leading/trailing whitespace is removed (IE can't handle it)
   3.632 -		data = jQuery.trim( data );
   3.633 -		
   3.634 -		// Make sure the incoming data is actual JSON
   3.635 -		// Logic borrowed from http://json.org/json2.js
   3.636 -		if ( rvalidchars.test(data.replace(rvalidescape, "@")
   3.637 -			.replace(rvalidtokens, "]")
   3.638 -			.replace(rvalidbraces, "")) ) {
   3.639 -
   3.640 -			// Try to use the native JSON parser first
   3.641 -			return window.JSON && window.JSON.parse ?
   3.642 -				window.JSON.parse( data ) :
   3.643 -				(new Function("return " + data))();
   3.644 -
   3.645 -		} else {
   3.646 -			jQuery.error( "Invalid JSON: " + data );
   3.647 -		}
   3.648 -	},
   3.649 -
   3.650 -	noop: function() {},
   3.651 -
   3.652 -	// Evalulates a script in a global context
   3.653 -	globalEval: function( data ) {
   3.654 -		if ( data && rnotwhite.test(data) ) {
   3.655 -			// Inspired by code by Andrea Giammarchi
   3.656 -			// http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
   3.657 -			var head = document.getElementsByTagName("head")[0] || document.documentElement,
   3.658 -				script = document.createElement("script");
   3.659 -
   3.660 -			script.type = "text/javascript";
   3.661 -
   3.662 -			if ( jQuery.support.scriptEval ) {
   3.663 -				script.appendChild( document.createTextNode( data ) );
   3.664 -			} else {
   3.665 -				script.text = data;
   3.666 -			}
   3.667 -
   3.668 -			// Use insertBefore instead of appendChild to circumvent an IE6 bug.
   3.669 -			// This arises when a base node is used (#2709).
   3.670 -			head.insertBefore( script, head.firstChild );
   3.671 -			head.removeChild( script );
   3.672 -		}
   3.673 -	},
   3.674 -
   3.675 -	nodeName: function( elem, name ) {
   3.676 -		return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
   3.677 -	},
   3.678 -
   3.679 -	// args is for internal usage only
   3.680 -	each: function( object, callback, args ) {
   3.681 -		var name, i = 0,
   3.682 -			length = object.length,
   3.683 -			isObj = length === undefined || jQuery.isFunction(object);
   3.684 -
   3.685 -		if ( args ) {
   3.686 -			if ( isObj ) {
   3.687 -				for ( name in object ) {
   3.688 -					if ( callback.apply( object[ name ], args ) === false ) {
   3.689 -						break;
   3.690 -					}
   3.691 -				}
   3.692 -			} else {
   3.693 -				for ( ; i < length; ) {
   3.694 -					if ( callback.apply( object[ i++ ], args ) === false ) {
   3.695 -						break;
   3.696 -					}
   3.697 -				}
   3.698 -			}
   3.699 -
   3.700 -		// A special, fast, case for the most common use of each
   3.701 -		} else {
   3.702 -			if ( isObj ) {
   3.703 -				for ( name in object ) {
   3.704 -					if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
   3.705 -						break;
   3.706 -					}
   3.707 -				}
   3.708 -			} else {
   3.709 -				for ( var value = object[0];
   3.710 -					i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
   3.711 -			}
   3.712 -		}
   3.713 -
   3.714 -		return object;
   3.715 -	},
   3.716 -
   3.717 -	// Use native String.trim function wherever possible
   3.718 -	trim: trim ?
   3.719 -		function( text ) {
   3.720 -			return text == null ?
   3.721 -				"" :
   3.722 -				trim.call( text );
   3.723 -		} :
   3.724 -
   3.725 -		// Otherwise use our own trimming functionality
   3.726 -		function( text ) {
   3.727 -			return text == null ?
   3.728 -				"" :
   3.729 -				text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
   3.730 -		},
   3.731 -
   3.732 -	// results is for internal usage only
   3.733 -	makeArray: function( array, results ) {
   3.734 -		var ret = results || [];
   3.735 -
   3.736 -		if ( array != null ) {
   3.737 -			// The window, strings (and functions) also have 'length'
   3.738 -			// The extra typeof function check is to prevent crashes
   3.739 -			// in Safari 2 (See: #3039)
   3.740 -			// Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
   3.741 -			var type = jQuery.type(array);
   3.742 -
   3.743 -			if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
   3.744 -				push.call( ret, array );
   3.745 -			} else {
   3.746 -				jQuery.merge( ret, array );
   3.747 -			}
   3.748 -		}
   3.749 -
   3.750 -		return ret;
   3.751 -	},
   3.752 -
   3.753 -	inArray: function( elem, array ) {
   3.754 -		if ( array.indexOf ) {
   3.755 -			return array.indexOf( elem );
   3.756 -		}
   3.757 -
   3.758 -		for ( var i = 0, length = array.length; i < length; i++ ) {
   3.759 -			if ( array[ i ] === elem ) {
   3.760 -				return i;
   3.761 -			}
   3.762 -		}
   3.763 -
   3.764 -		return -1;
   3.765 -	},
   3.766 -
   3.767 -	merge: function( first, second ) {
   3.768 -		var i = first.length,
   3.769 -			j = 0;
   3.770 -
   3.771 -		if ( typeof second.length === "number" ) {
   3.772 -			for ( var l = second.length; j < l; j++ ) {
   3.773 -				first[ i++ ] = second[ j ];
   3.774 -			}
   3.775 -		
   3.776 -		} else {
   3.777 -			while ( second[j] !== undefined ) {
   3.778 -				first[ i++ ] = second[ j++ ];
   3.779 -			}
   3.780 -		}
   3.781 -
   3.782 -		first.length = i;
   3.783 -
   3.784 -		return first;
   3.785 -	},
   3.786 -
   3.787 -	grep: function( elems, callback, inv ) {
   3.788 -		var ret = [], retVal;
   3.789 -		inv = !!inv;
   3.790 -
   3.791 -		// Go through the array, only saving the items
   3.792 -		// that pass the validator function
   3.793 -		for ( var i = 0, length = elems.length; i < length; i++ ) {
   3.794 -			retVal = !!callback( elems[ i ], i );
   3.795 -			if ( inv !== retVal ) {
   3.796 -				ret.push( elems[ i ] );
   3.797 -			}
   3.798 -		}
   3.799 -
   3.800 -		return ret;
   3.801 -	},
   3.802 -
   3.803 -	// arg is for internal usage only
   3.804 -	map: function( elems, callback, arg ) {
   3.805 -		var ret = [], value;
   3.806 -
   3.807 -		// Go through the array, translating each of the items to their
   3.808 -		// new value (or values).
   3.809 -		for ( var i = 0, length = elems.length; i < length; i++ ) {
   3.810 -			value = callback( elems[ i ], i, arg );
   3.811 -
   3.812 -			if ( value != null ) {
   3.813 -				ret[ ret.length ] = value;
   3.814 -			}
   3.815 -		}
   3.816 -
   3.817 -		return ret.concat.apply( [], ret );
   3.818 -	},
   3.819 -
   3.820 -	// A global GUID counter for objects
   3.821 -	guid: 1,
   3.822 -
   3.823 -	proxy: function( fn, proxy, thisObject ) {
   3.824 -		if ( arguments.length === 2 ) {
   3.825 -			if ( typeof proxy === "string" ) {
   3.826 -				thisObject = fn;
   3.827 -				fn = thisObject[ proxy ];
   3.828 -				proxy = undefined;
   3.829 -
   3.830 -			} else if ( proxy && !jQuery.isFunction( proxy ) ) {
   3.831 -				thisObject = proxy;
   3.832 -				proxy = undefined;
   3.833 -			}
   3.834 -		}
   3.835 -
   3.836 -		if ( !proxy && fn ) {
   3.837 -			proxy = function() {
   3.838 -				return fn.apply( thisObject || this, arguments );
   3.839 -			};
   3.840 -		}
   3.841 -
   3.842 -		// Set the guid of unique handler to the same of original handler, so it can be removed
   3.843 -		if ( fn ) {
   3.844 -			proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
   3.845 -		}
   3.846 -
   3.847 -		// So proxy can be declared as an argument
   3.848 -		return proxy;
   3.849 -	},
   3.850 -
   3.851 -	// Mutifunctional method to get and set values to a collection
   3.852 -	// The value/s can be optionally by executed if its a function
   3.853 -	access: function( elems, key, value, exec, fn, pass ) {
   3.854 -		var length = elems.length;
   3.855 -	
   3.856 -		// Setting many attributes
   3.857 -		if ( typeof key === "object" ) {
   3.858 -			for ( var k in key ) {
   3.859 -				jQuery.access( elems, k, key[k], exec, fn, value );
   3.860 -			}
   3.861 -			return elems;
   3.862 -		}
   3.863 -	
   3.864 -		// Setting one attribute
   3.865 -		if ( value !== undefined ) {
   3.866 -			// Optionally, function values get executed if exec is true
   3.867 -			exec = !pass && exec && jQuery.isFunction(value);
   3.868 -		
   3.869 -			for ( var i = 0; i < length; i++ ) {
   3.870 -				fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
   3.871 -			}
   3.872 -		
   3.873 -			return elems;
   3.874 -		}
   3.875 -	
   3.876 -		// Getting an attribute
   3.877 -		return length ? fn( elems[0], key ) : undefined;
   3.878 -	},
   3.879 -
   3.880 -	now: function() {
   3.881 -		return (new Date()).getTime();
   3.882 -	},
   3.883 -
   3.884 -	// Use of jQuery.browser is frowned upon.
   3.885 -	// More details: http://docs.jquery.com/Utilities/jQuery.browser
   3.886 -	uaMatch: function( ua ) {
   3.887 -		ua = ua.toLowerCase();
   3.888 -
   3.889 -		var match = rwebkit.exec( ua ) ||
   3.890 -			ropera.exec( ua ) ||
   3.891 -			rmsie.exec( ua ) ||
   3.892 -			ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
   3.893 -			[];
   3.894 -
   3.895 -		return { browser: match[1] || "", version: match[2] || "0" };
   3.896 -	},
   3.897 -
   3.898 -	browser: {}
   3.899 -});
   3.900 -
   3.901 -// Populate the class2type map
   3.902 -jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
   3.903 -	class2type[ "[object " + name + "]" ] = name.toLowerCase();
   3.904 -});
   3.905 -
   3.906 -browserMatch = jQuery.uaMatch( userAgent );
   3.907 -if ( browserMatch.browser ) {
   3.908 -	jQuery.browser[ browserMatch.browser ] = true;
   3.909 -	jQuery.browser.version = browserMatch.version;
   3.910 -}
   3.911 -
   3.912 -// Deprecated, use jQuery.browser.webkit instead
   3.913 -if ( jQuery.browser.webkit ) {
   3.914 -	jQuery.browser.safari = true;
   3.915 -}
   3.916 -
   3.917 -if ( indexOf ) {
   3.918 -	jQuery.inArray = function( elem, array ) {
   3.919 -		return indexOf.call( array, elem );
   3.920 -	};
   3.921 -}
   3.922 -
   3.923 -// Verify that \s matches non-breaking spaces
   3.924 -// (IE fails on this test)
   3.925 -if ( !rwhite.test( "\xA0" ) ) {
   3.926 -	trimLeft = /^[\s\xA0]+/;
   3.927 -	trimRight = /[\s\xA0]+$/;
   3.928 -}
   3.929 -
   3.930 -// All jQuery objects should point back to these
   3.931 -rootjQuery = jQuery(document);
   3.932 -
   3.933 -// Cleanup functions for the document ready method
   3.934 -if ( document.addEventListener ) {
   3.935 -	DOMContentLoaded = function() {
   3.936 -		document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
   3.937 -		jQuery.ready();
   3.938 -	};
   3.939 -
   3.940 -} else if ( document.attachEvent ) {
   3.941 -	DOMContentLoaded = function() {
   3.942 -		// Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
   3.943 -		if ( document.readyState === "complete" ) {
   3.944 -			document.detachEvent( "onreadystatechange", DOMContentLoaded );
   3.945 -			jQuery.ready();
   3.946 -		}
   3.947 -	};
   3.948 -}
   3.949 -
   3.950 -// The DOM ready check for Internet Explorer
   3.951 -function doScrollCheck() {
   3.952 -	if ( jQuery.isReady ) {
   3.953 -		return;
   3.954 -	}
   3.955 -
   3.956 -	try {
   3.957 -		// If IE is used, use the trick by Diego Perini
   3.958 -		// http://javascript.nwbox.com/IEContentLoaded/
   3.959 -		document.documentElement.doScroll("left");
   3.960 -	} catch(e) {
   3.961 -		setTimeout( doScrollCheck, 1 );
   3.962 -		return;
   3.963 -	}
   3.964 -
   3.965 -	// and execute any waiting functions
   3.966 -	jQuery.ready();
   3.967 -}
   3.968 -
   3.969 -// Expose jQuery to the global object
   3.970 -return (window.jQuery = window.$ = jQuery);
   3.971 -
   3.972 -})();
   3.973 -
   3.974 -
   3.975 -(function() {
   3.976 -
   3.977 -	jQuery.support = {};
   3.978 -
   3.979 -	var root = document.documentElement,
   3.980 -		script = document.createElement("script"),
   3.981 -		div = document.createElement("div"),
   3.982 -		id = "script" + jQuery.now();
   3.983 -
   3.984 -	div.style.display = "none";
   3.985 -	div.innerHTML = "   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
   3.986 -
   3.987 -	var all = div.getElementsByTagName("*"),
   3.988 -		a = div.getElementsByTagName("a")[0],
   3.989 -		select = document.createElement("select"),
   3.990 -		opt = select.appendChild( document.createElement("option") );
   3.991 -
   3.992 -	// Can't get basic test support
   3.993 -	if ( !all || !all.length || !a ) {
   3.994 -		return;
   3.995 -	}
   3.996 -
   3.997 -	jQuery.support = {
   3.998 -		// IE strips leading whitespace when .innerHTML is used
   3.999 -		leadingWhitespace: div.firstChild.nodeType === 3,
  3.1000 -
  3.1001 -		// Make sure that tbody elements aren't automatically inserted
  3.1002 -		// IE will insert them into empty tables
  3.1003 -		tbody: !div.getElementsByTagName("tbody").length,
  3.1004 -
  3.1005 -		// Make sure that link elements get serialized correctly by innerHTML
  3.1006 -		// This requires a wrapper element in IE
  3.1007 -		htmlSerialize: !!div.getElementsByTagName("link").length,
  3.1008 -
  3.1009 -		// Get the style information from getAttribute
  3.1010 -		// (IE uses .cssText insted)
  3.1011 -		style: /red/.test( a.getAttribute("style") ),
  3.1012 -
  3.1013 -		// Make sure that URLs aren't manipulated
  3.1014 -		// (IE normalizes it by default)
  3.1015 -		hrefNormalized: a.getAttribute("href") === "/a",
  3.1016 -
  3.1017 -		// Make sure that element opacity exists
  3.1018 -		// (IE uses filter instead)
  3.1019 -		// Use a regex to work around a WebKit issue. See #5145
  3.1020 -		opacity: /^0.55$/.test( a.style.opacity ),
  3.1021 -
  3.1022 -		// Verify style float existence
  3.1023 -		// (IE uses styleFloat instead of cssFloat)
  3.1024 -		cssFloat: !!a.style.cssFloat,
  3.1025 -
  3.1026 -		// Make sure that if no value is specified for a checkbox
  3.1027 -		// that it defaults to "on".
  3.1028 -		// (WebKit defaults to "" instead)
  3.1029 -		checkOn: div.getElementsByTagName("input")[0].value === "on",
  3.1030 -
  3.1031 -		// Make sure that a selected-by-default option has a working selected property.
  3.1032 -		// (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
  3.1033 -		optSelected: opt.selected,
  3.1034 -
  3.1035 -		// Will be defined later
  3.1036 -		deleteExpando: true,
  3.1037 -		optDisabled: false,
  3.1038 -		checkClone: false,
  3.1039 -		scriptEval: false,
  3.1040 -		noCloneEvent: true,
  3.1041 -		boxModel: null,
  3.1042 -		inlineBlockNeedsLayout: false,
  3.1043 -		shrinkWrapBlocks: false,
  3.1044 -		reliableHiddenOffsets: true
  3.1045 -	};
  3.1046 -
  3.1047 -	// Make sure that the options inside disabled selects aren't marked as disabled
  3.1048 -	// (WebKit marks them as diabled)
  3.1049 -	select.disabled = true;
  3.1050 -	jQuery.support.optDisabled = !opt.disabled;
  3.1051 -
  3.1052 -	script.type = "text/javascript";
  3.1053 -	try {
  3.1054 -		script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
  3.1055 -	} catch(e) {}
  3.1056 -
  3.1057 -	root.insertBefore( script, root.firstChild );
  3.1058 -
  3.1059 -	// Make sure that the execution of code works by injecting a script
  3.1060 -	// tag with appendChild/createTextNode
  3.1061 -	// (IE doesn't support this, fails, and uses .text instead)
  3.1062 -	if ( window[ id ] ) {
  3.1063 -		jQuery.support.scriptEval = true;
  3.1064 -		delete window[ id ];
  3.1065 -	}
  3.1066 -
  3.1067 -	// Test to see if it's possible to delete an expando from an element
  3.1068 -	// Fails in Internet Explorer
  3.1069 -	try {
  3.1070 -		delete script.test;
  3.1071 -
  3.1072 -	} catch(e) {
  3.1073 -		jQuery.support.deleteExpando = false;
  3.1074 -	}
  3.1075 -
  3.1076 -	root.removeChild( script );
  3.1077 -
  3.1078 -	if ( div.attachEvent && div.fireEvent ) {
  3.1079 -		div.attachEvent("onclick", function click() {
  3.1080 -			// Cloning a node shouldn't copy over any
  3.1081 -			// bound event handlers (IE does this)
  3.1082 -			jQuery.support.noCloneEvent = false;
  3.1083 -			div.detachEvent("onclick", click);
  3.1084 -		});
  3.1085 -		div.cloneNode(true).fireEvent("onclick");
  3.1086 -	}
  3.1087 -
  3.1088 -	div = document.createElement("div");
  3.1089 -	div.innerHTML = "<input type='radio' name='radiotest' checked='checked'/>";
  3.1090 -
  3.1091 -	var fragment = document.createDocumentFragment();
  3.1092 -	fragment.appendChild( div.firstChild );
  3.1093 -
  3.1094 -	// WebKit doesn't clone checked state correctly in fragments
  3.1095 -	jQuery.support.checkClone = fragment.cloneNode(true).cloneNode(true).lastChild.checked;
  3.1096 -
  3.1097 -	// Figure out if the W3C box model works as expected
  3.1098 -	// document.body must exist before we can do this
  3.1099 -	jQuery(function() {
  3.1100 -		var div = document.createElement("div");
  3.1101 -		div.style.width = div.style.paddingLeft = "1px";
  3.1102 -
  3.1103 -		document.body.appendChild( div );
  3.1104 -		jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
  3.1105 -
  3.1106 -		if ( "zoom" in div.style ) {
  3.1107 -			// Check if natively block-level elements act like inline-block
  3.1108 -			// elements when setting their display to 'inline' and giving
  3.1109 -			// them layout
  3.1110 -			// (IE < 8 does this)
  3.1111 -			div.style.display = "inline";
  3.1112 -			div.style.zoom = 1;
  3.1113 -			jQuery.support.inlineBlockNeedsLayout = div.offsetWidth === 2;
  3.1114 -
  3.1115 -			// Check if elements with layout shrink-wrap their children
  3.1116 -			// (IE 6 does this)
  3.1117 -			div.style.display = "";
  3.1118 -			div.innerHTML = "<div style='width:4px;'></div>";
  3.1119 -			jQuery.support.shrinkWrapBlocks = div.offsetWidth !== 2;
  3.1120 -		}
  3.1121 -
  3.1122 -		div.innerHTML = "<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";
  3.1123 -		var tds = div.getElementsByTagName("td");
  3.1124 -
  3.1125 -		// Check if table cells still have offsetWidth/Height when they are set
  3.1126 -		// to display:none and there are still other visible table cells in a
  3.1127 -		// table row; if so, offsetWidth/Height are not reliable for use when
  3.1128 -		// determining if an element has been hidden directly using
  3.1129 -		// display:none (it is still safe to use offsets if a parent element is
  3.1130 -		// hidden; don safety goggles and see bug #4512 for more information).
  3.1131 -		// (only IE 8 fails this test)
  3.1132 -		jQuery.support.reliableHiddenOffsets = tds[0].offsetHeight === 0;
  3.1133 -
  3.1134 -		tds[0].style.display = "";
  3.1135 -		tds[1].style.display = "none";
  3.1136 -
  3.1137 -		// Check if empty table cells still have offsetWidth/Height
  3.1138 -		// (IE < 8 fail this test)
  3.1139 -		jQuery.support.reliableHiddenOffsets = jQuery.support.reliableHiddenOffsets && tds[0].offsetHeight === 0;
  3.1140 -		div.innerHTML = "";
  3.1141 -
  3.1142 -		document.body.removeChild( div ).style.display = "none";
  3.1143 -		div = tds = null;
  3.1144 -	});
  3.1145 -
  3.1146 -	// Technique from Juriy Zaytsev
  3.1147 -	// http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
  3.1148 -	var eventSupported = function( eventName ) {
  3.1149 -		var el = document.createElement("div");
  3.1150 -		eventName = "on" + eventName;
  3.1151 -
  3.1152 -		var isSupported = (eventName in el);
  3.1153 -		if ( !isSupported ) {
  3.1154 -			el.setAttribute(eventName, "return;");
  3.1155 -			isSupported = typeof el[eventName] === "function";
  3.1156 -		}
  3.1157 -		el = null;
  3.1158 -
  3.1159 -		return isSupported;
  3.1160 -	};
  3.1161 -
  3.1162 -	jQuery.support.submitBubbles = eventSupported("submit");
  3.1163 -	jQuery.support.changeBubbles = eventSupported("change");
  3.1164 -
  3.1165 -	// release memory in IE
  3.1166 -	root = script = div = all = a = null;
  3.1167 -})();
  3.1168 -
  3.1169 -
  3.1170 -
  3.1171 -var windowData = {},
  3.1172 -	rbrace = /^(?:\{.*\}|\[.*\])$/;
  3.1173 -
  3.1174 -jQuery.extend({
  3.1175 -	cache: {},
  3.1176 -
  3.1177 -	// Please use with caution
  3.1178 -	uuid: 0,
  3.1179 -
  3.1180 -	// Unique for each copy of jQuery on the page	
  3.1181 -	expando: "jQuery" + jQuery.now(),
  3.1182 -
  3.1183 -	// The following elements throw uncatchable exceptions if you
  3.1184 -	// attempt to add expando properties to them.
  3.1185 -	noData: {
  3.1186 -		"embed": true,
  3.1187 -		// Ban all objects except for Flash (which handle expandos)
  3.1188 -		"object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
  3.1189 -		"applet": true
  3.1190 -	},
  3.1191 -
  3.1192 -	data: function( elem, name, data ) {
  3.1193 -		if ( !jQuery.acceptData( elem ) ) {
  3.1194 -			return;
  3.1195 -		}
  3.1196 -
  3.1197 -		elem = elem == window ?
  3.1198 -			windowData :
  3.1199 -			elem;
  3.1200 -
  3.1201 -		var isNode = elem.nodeType,
  3.1202 -			id = isNode ? elem[ jQuery.expando ] : null,
  3.1203 -			cache = jQuery.cache, thisCache;
  3.1204 -
  3.1205 -		if ( isNode && !id && typeof name === "string" && data === undefined ) {
  3.1206 -			return;
  3.1207 -		}
  3.1208 -
  3.1209 -		// Get the data from the object directly
  3.1210 -		if ( !isNode ) {
  3.1211 -			cache = elem;
  3.1212 -
  3.1213 -		// Compute a unique ID for the element
  3.1214 -		} else if ( !id ) {
  3.1215 -			elem[ jQuery.expando ] = id = ++jQuery.uuid;
  3.1216 -		}
  3.1217 -
  3.1218 -		// Avoid generating a new cache unless none exists and we
  3.1219 -		// want to manipulate it.
  3.1220 -		if ( typeof name === "object" ) {
  3.1221 -			if ( isNode ) {
  3.1222 -				cache[ id ] = jQuery.extend(cache[ id ], name);
  3.1223 -
  3.1224 -			} else {
  3.1225 -				jQuery.extend( cache, name );
  3.1226 -			}
  3.1227 -
  3.1228 -		} else if ( isNode && !cache[ id ] ) {
  3.1229 -			cache[ id ] = {};
  3.1230 -		}
  3.1231 -
  3.1232 -		thisCache = isNode ? cache[ id ] : cache;
  3.1233 -
  3.1234 -		// Prevent overriding the named cache with undefined values
  3.1235 -		if ( data !== undefined ) {
  3.1236 -			thisCache[ name ] = data;
  3.1237 -		}
  3.1238 -
  3.1239 -		return typeof name === "string" ? thisCache[ name ] : thisCache;
  3.1240 -	},
  3.1241 -
  3.1242 -	removeData: function( elem, name ) {
  3.1243 -		if ( !jQuery.acceptData( elem ) ) {
  3.1244 -			return;
  3.1245 -		}
  3.1246 -
  3.1247 -		elem = elem == window ?
  3.1248 -			windowData :
  3.1249 -			elem;
  3.1250 -
  3.1251 -		var isNode = elem.nodeType,
  3.1252 -			id = isNode ? elem[ jQuery.expando ] : elem,
  3.1253 -			cache = jQuery.cache,
  3.1254 -			thisCache = isNode ? cache[ id ] : id;
  3.1255 -
  3.1256 -		// If we want to remove a specific section of the element's data
  3.1257 -		if ( name ) {
  3.1258 -			if ( thisCache ) {
  3.1259 -				// Remove the section of cache data
  3.1260 -				delete thisCache[ name ];
  3.1261 -
  3.1262 -				// If we've removed all the data, remove the element's cache
  3.1263 -				if ( isNode && jQuery.isEmptyObject(thisCache) ) {
  3.1264 -					jQuery.removeData( elem );
  3.1265 -				}
  3.1266 -			}
  3.1267 -
  3.1268 -		// Otherwise, we want to remove all of the element's data
  3.1269 -		} else {
  3.1270 -			if ( isNode && jQuery.support.deleteExpando ) {
  3.1271 -				delete elem[ jQuery.expando ];
  3.1272 -
  3.1273 -			} else if ( elem.removeAttribute ) {
  3.1274 -				elem.removeAttribute( jQuery.expando );
  3.1275 -
  3.1276 -			// Completely remove the data cache
  3.1277 -			} else if ( isNode ) {
  3.1278 -				delete cache[ id ];
  3.1279 -
  3.1280 -			// Remove all fields from the object
  3.1281 -			} else {
  3.1282 -				for ( var n in elem ) {
  3.1283 -					delete elem[ n ];
  3.1284 -				}
  3.1285 -			}
  3.1286 -		}
  3.1287 -	},
  3.1288 -
  3.1289 -	// A method for determining if a DOM node can handle the data expando
  3.1290 -	acceptData: function( elem ) {
  3.1291 -		if ( elem.nodeName ) {
  3.1292 -			var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
  3.1293 -
  3.1294 -			if ( match ) {
  3.1295 -				return !(match === true || elem.getAttribute("classid") !== match);
  3.1296 -			}
  3.1297 -		}
  3.1298 -
  3.1299 -		return true;
  3.1300 -	}
  3.1301 -});
  3.1302 -
  3.1303 -jQuery.fn.extend({
  3.1304 -	data: function( key, value ) {
  3.1305 -		var data = null;
  3.1306 -
  3.1307 -		if ( typeof key === "undefined" ) {
  3.1308 -			if ( this.length ) {
  3.1309 -				var attr = this[0].attributes, name;
  3.1310 -				data = jQuery.data( this[0] );
  3.1311 -
  3.1312 -				for ( var i = 0, l = attr.length; i < l; i++ ) {
  3.1313 -					name = attr[i].name;
  3.1314 -
  3.1315 -					if ( name.indexOf( "data-" ) === 0 ) {
  3.1316 -						name = name.substr( 5 );
  3.1317 -						dataAttr( this[0], name, data[ name ] );
  3.1318 -					}
  3.1319 -				}
  3.1320 -			}
  3.1321 -
  3.1322 -			return data;
  3.1323 -
  3.1324 -		} else if ( typeof key === "object" ) {
  3.1325 -			return this.each(function() {
  3.1326 -				jQuery.data( this, key );
  3.1327 -			});
  3.1328 -		}
  3.1329 -
  3.1330 -		var parts = key.split(".");
  3.1331 -		parts[1] = parts[1] ? "." + parts[1] : "";
  3.1332 -
  3.1333 -		if ( value === undefined ) {
  3.1334 -			data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
  3.1335 -
  3.1336 -			// Try to fetch any internally stored data first
  3.1337 -			if ( data === undefined && this.length ) {
  3.1338 -				data = jQuery.data( this[0], key );
  3.1339 -				data = dataAttr( this[0], key, data );
  3.1340 -			}
  3.1341 -
  3.1342 -			return data === undefined && parts[1] ?
  3.1343 -				this.data( parts[0] ) :
  3.1344 -				data;
  3.1345 -
  3.1346 -		} else {
  3.1347 -			return this.each(function() {
  3.1348 -				var $this = jQuery( this ),
  3.1349 -					args = [ parts[0], value ];
  3.1350 -
  3.1351 -				$this.triggerHandler( "setData" + parts[1] + "!", args );
  3.1352 -				jQuery.data( this, key, value );
  3.1353 -				$this.triggerHandler( "changeData" + parts[1] + "!", args );
  3.1354 -			});
  3.1355 -		}
  3.1356 -	},
  3.1357 -
  3.1358 -	removeData: function( key ) {
  3.1359 -		return this.each(function() {
  3.1360 -			jQuery.removeData( this, key );
  3.1361 -		});
  3.1362 -	}
  3.1363 -});
  3.1364 -
  3.1365 -function dataAttr( elem, key, data ) {
  3.1366 -	// If nothing was found internally, try to fetch any
  3.1367 -	// data from the HTML5 data-* attribute
  3.1368 -	if ( data === undefined && elem.nodeType === 1 ) {
  3.1369 -		data = elem.getAttribute( "data-" + key );
  3.1370 -
  3.1371 -		if ( typeof data === "string" ) {
  3.1372 -			try {
  3.1373 -				data = data === "true" ? true :
  3.1374 -				data === "false" ? false :
  3.1375 -				data === "null" ? null :
  3.1376 -				!jQuery.isNaN( data ) ? parseFloat( data ) :
  3.1377 -					rbrace.test( data ) ? jQuery.parseJSON( data ) :
  3.1378 -					data;
  3.1379 -			} catch( e ) {}
  3.1380 -
  3.1381 -			// Make sure we set the data so it isn't changed later
  3.1382 -			jQuery.data( elem, key, data );
  3.1383 -
  3.1384 -		} else {
  3.1385 -			data = undefined;
  3.1386 -		}
  3.1387 -	}
  3.1388 -
  3.1389 -	return data;
  3.1390 -}
  3.1391 -
  3.1392 -
  3.1393 -
  3.1394 -
  3.1395 -jQuery.extend({
  3.1396 -	queue: function( elem, type, data ) {
  3.1397 -		if ( !elem ) {
  3.1398 -			return;
  3.1399 -		}
  3.1400 -
  3.1401 -		type = (type || "fx") + "queue";
  3.1402 -		var q = jQuery.data( elem, type );
  3.1403 -
  3.1404 -		// Speed up dequeue by getting out quickly if this is just a lookup
  3.1405 -		if ( !data ) {
  3.1406 -			return q || [];
  3.1407 -		}
  3.1408 -
  3.1409 -		if ( !q || jQuery.isArray(data) ) {
  3.1410 -			q = jQuery.data( elem, type, jQuery.makeArray(data) );
  3.1411 -
  3.1412 -		} else {
  3.1413 -			q.push( data );
  3.1414 -		}
  3.1415 -
  3.1416 -		return q;
  3.1417 -	},
  3.1418 -
  3.1419 -	dequeue: function( elem, type ) {
  3.1420 -		type = type || "fx";
  3.1421 -
  3.1422 -		var queue = jQuery.queue( elem, type ),
  3.1423 -			fn = queue.shift();
  3.1424 -
  3.1425 -		// If the fx queue is dequeued, always remove the progress sentinel
  3.1426 -		if ( fn === "inprogress" ) {
  3.1427 -			fn = queue.shift();
  3.1428 -		}
  3.1429 -
  3.1430 -		if ( fn ) {
  3.1431 -			// Add a progress sentinel to prevent the fx queue from being
  3.1432 -			// automatically dequeued
  3.1433 -			if ( type === "fx" ) {
  3.1434 -				queue.unshift("inprogress");
  3.1435 -			}
  3.1436 -
  3.1437 -			fn.call(elem, function() {
  3.1438 -				jQuery.dequeue(elem, type);
  3.1439 -			});
  3.1440 -		}
  3.1441 -	}
  3.1442 -});
  3.1443 -
  3.1444 -jQuery.fn.extend({
  3.1445 -	queue: function( type, data ) {
  3.1446 -		if ( typeof type !== "string" ) {
  3.1447 -			data = type;
  3.1448 -			type = "fx";
  3.1449 -		}
  3.1450 -
  3.1451 -		if ( data === undefined ) {
  3.1452 -			return jQuery.queue( this[0], type );
  3.1453 -		}
  3.1454 -		return this.each(function( i ) {
  3.1455 -			var queue = jQuery.queue( this, type, data );
  3.1456 -
  3.1457 -			if ( type === "fx" && queue[0] !== "inprogress" ) {
  3.1458 -				jQuery.dequeue( this, type );
  3.1459 -			}
  3.1460 -		});
  3.1461 -	},
  3.1462 -	dequeue: function( type ) {
  3.1463 -		return this.each(function() {
  3.1464 -			jQuery.dequeue( this, type );
  3.1465 -		});
  3.1466 -	},
  3.1467 -
  3.1468 -	// Based off of the plugin by Clint Helfers, with permission.
  3.1469 -	// http://blindsignals.com/index.php/2009/07/jquery-delay/
  3.1470 -	delay: function( time, type ) {
  3.1471 -		time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
  3.1472 -		type = type || "fx";
  3.1473 -
  3.1474 -		return this.queue( type, function() {
  3.1475 -			var elem = this;
  3.1476 -			setTimeout(function() {
  3.1477 -				jQuery.dequeue( elem, type );
  3.1478 -			}, time );
  3.1479 -		});
  3.1480 -	},
  3.1481 -
  3.1482 -	clearQueue: function( type ) {
  3.1483 -		return this.queue( type || "fx", [] );
  3.1484 -	}
  3.1485 -});
  3.1486 -
  3.1487 -
  3.1488 -
  3.1489 -
  3.1490 -var rclass = /[\n\t]/g,
  3.1491 -	rspaces = /\s+/,
  3.1492 -	rreturn = /\r/g,
  3.1493 -	rspecialurl = /^(?:href|src|style)$/,
  3.1494 -	rtype = /^(?:button|input)$/i,
  3.1495 -	rfocusable = /^(?:button|input|object|select|textarea)$/i,
  3.1496 -	rclickable = /^a(?:rea)?$/i,
  3.1497 -	rradiocheck = /^(?:radio|checkbox)$/i;
  3.1498 -
  3.1499 -jQuery.props = {
  3.1500 -	"for": "htmlFor",
  3.1501 -	"class": "className",
  3.1502 -	readonly: "readOnly",
  3.1503 -	maxlength: "maxLength",
  3.1504 -	cellspacing: "cellSpacing",
  3.1505 -	rowspan: "rowSpan",
  3.1506 -	colspan: "colSpan",
  3.1507 -	tabindex: "tabIndex",
  3.1508 -	usemap: "useMap",
  3.1509 -	frameborder: "frameBorder"
  3.1510 -};
  3.1511 -
  3.1512 -jQuery.fn.extend({
  3.1513 -	attr: function( name, value ) {
  3.1514 -		return jQuery.access( this, name, value, true, jQuery.attr );
  3.1515 -	},
  3.1516 -
  3.1517 -	removeAttr: function( name, fn ) {
  3.1518 -		return this.each(function(){
  3.1519 -			jQuery.attr( this, name, "" );
  3.1520 -			if ( this.nodeType === 1 ) {
  3.1521 -				this.removeAttribute( name );
  3.1522 -			}
  3.1523 -		});
  3.1524 -	},
  3.1525 -
  3.1526 -	addClass: function( value ) {
  3.1527 -		if ( jQuery.isFunction(value) ) {
  3.1528 -			return this.each(function(i) {
  3.1529 -				var self = jQuery(this);
  3.1530 -				self.addClass( value.call(this, i, self.attr("class")) );
  3.1531 -			});
  3.1532 -		}
  3.1533 -
  3.1534 -		if ( value && typeof value === "string" ) {
  3.1535 -			var classNames = (value || "").split( rspaces );
  3.1536 -
  3.1537 -			for ( var i = 0, l = this.length; i < l; i++ ) {
  3.1538 -				var elem = this[i];
  3.1539 -
  3.1540 -				if ( elem.nodeType === 1 ) {
  3.1541 -					if ( !elem.className ) {
  3.1542 -						elem.className = value;
  3.1543 -
  3.1544 -					} else {
  3.1545 -						var className = " " + elem.className + " ",
  3.1546 -							setClass = elem.className;
  3.1547 -
  3.1548 -						for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
  3.1549 -							if ( className.indexOf( " " + classNames[c] + " " ) < 0 ) {
  3.1550 -								setClass += " " + classNames[c];
  3.1551 -							}
  3.1552 -						}
  3.1553 -						elem.className = jQuery.trim( setClass );
  3.1554 -					}
  3.1555 -				}
  3.1556 -			}
  3.1557 -		}
  3.1558 -
  3.1559 -		return this;
  3.1560 -	},
  3.1561 -
  3.1562 -	removeClass: function( value ) {
  3.1563 -		if ( jQuery.isFunction(value) ) {
  3.1564 -			return this.each(function(i) {
  3.1565 -				var self = jQuery(this);
  3.1566 -				self.removeClass( value.call(this, i, self.attr("class")) );
  3.1567 -			});
  3.1568 -		}
  3.1569 -
  3.1570 -		if ( (value && typeof value === "string") || value === undefined ) {
  3.1571 -			var classNames = (value || "").split( rspaces );
  3.1572 -
  3.1573 -			for ( var i = 0, l = this.length; i < l; i++ ) {
  3.1574 -				var elem = this[i];
  3.1575 -
  3.1576 -				if ( elem.nodeType === 1 && elem.className ) {
  3.1577 -					if ( value ) {
  3.1578 -						var className = (" " + elem.className + " ").replace(rclass, " ");
  3.1579 -						for ( var c = 0, cl = classNames.length; c < cl; c++ ) {
  3.1580 -							className = className.replace(" " + classNames[c] + " ", " ");
  3.1581 -						}
  3.1582 -						elem.className = jQuery.trim( className );
  3.1583 -
  3.1584 -					} else {
  3.1585 -						elem.className = "";
  3.1586 -					}
  3.1587 -				}
  3.1588 -			}
  3.1589 -		}
  3.1590 -
  3.1591 -		return this;
  3.1592 -	},
  3.1593 -
  3.1594 -	toggleClass: function( value, stateVal ) {
  3.1595 -		var type = typeof value,
  3.1596 -			isBool = typeof stateVal === "boolean";
  3.1597 -
  3.1598 -		if ( jQuery.isFunction( value ) ) {
  3.1599 -			return this.each(function(i) {
  3.1600 -				var self = jQuery(this);
  3.1601 -				self.toggleClass( value.call(this, i, self.attr("class"), stateVal), stateVal );
  3.1602 -			});
  3.1603 -		}
  3.1604 -
  3.1605 -		return this.each(function() {
  3.1606 -			if ( type === "string" ) {
  3.1607 -				// toggle individual class names
  3.1608 -				var className,
  3.1609 -					i = 0,
  3.1610 -					self = jQuery( this ),
  3.1611 -					state = stateVal,
  3.1612 -					classNames = value.split( rspaces );
  3.1613 -
  3.1614 -				while ( (className = classNames[ i++ ]) ) {
  3.1615 -					// check each className given, space seperated list
  3.1616 -					state = isBool ? state : !self.hasClass( className );
  3.1617 -					self[ state ? "addClass" : "removeClass" ]( className );
  3.1618 -				}
  3.1619 -
  3.1620 -			} else if ( type === "undefined" || type === "boolean" ) {
  3.1621 -				if ( this.className ) {
  3.1622 -					// store className if set
  3.1623 -					jQuery.data( this, "__className__", this.className );
  3.1624 -				}
  3.1625 -
  3.1626 -				// toggle whole className
  3.1627 -				this.className = this.className || value === false ? "" : jQuery.data( this, "__className__" ) || "";
  3.1628 -			}
  3.1629 -		});
  3.1630 -	},
  3.1631 -
  3.1632 -	hasClass: function( selector ) {
  3.1633 -		var className = " " + selector + " ";
  3.1634 -		for ( var i = 0, l = this.length; i < l; i++ ) {
  3.1635 -			if ( (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
  3.1636 -				return true;
  3.1637 -			}
  3.1638 -		}
  3.1639 -
  3.1640 -		return false;
  3.1641 -	},
  3.1642 -
  3.1643 -	val: function( value ) {
  3.1644 -		if ( !arguments.length ) {
  3.1645 -			var elem = this[0];
  3.1646 -
  3.1647 -			if ( elem ) {
  3.1648 -				if ( jQuery.nodeName( elem, "option" ) ) {
  3.1649 -					// attributes.value is undefined in Blackberry 4.7 but
  3.1650 -					// uses .value. See #6932
  3.1651 -					var val = elem.attributes.value;
  3.1652 -					return !val || val.specified ? elem.value : elem.text;
  3.1653 -				}
  3.1654 -
  3.1655 -				// We need to handle select boxes special
  3.1656 -				if ( jQuery.nodeName( elem, "select" ) ) {
  3.1657 -					var index = elem.selectedIndex,
  3.1658 -						values = [],
  3.1659 -						options = elem.options,
  3.1660 -						one = elem.type === "select-one";
  3.1661 -
  3.1662 -					// Nothing was selected
  3.1663 -					if ( index < 0 ) {
  3.1664 -						return null;
  3.1665 -					}
  3.1666 -
  3.1667 -					// Loop through all the selected options
  3.1668 -					for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
  3.1669 -						var option = options[ i ];
  3.1670 -
  3.1671 -						// Don't return options that are disabled or in a disabled optgroup
  3.1672 -						if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) && 
  3.1673 -								(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
  3.1674 -
  3.1675 -							// Get the specific value for the option
  3.1676 -							value = jQuery(option).val();
  3.1677 -
  3.1678 -							// We don't need an array for one selects
  3.1679 -							if ( one ) {
  3.1680 -								return value;
  3.1681 -							}
  3.1682 -
  3.1683 -							// Multi-Selects return an array
  3.1684 -							values.push( value );
  3.1685 -						}
  3.1686 -					}
  3.1687 -
  3.1688 -					return values;
  3.1689 -				}
  3.1690 -
  3.1691 -				// Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
  3.1692 -				if ( rradiocheck.test( elem.type ) && !jQuery.support.checkOn ) {
  3.1693 -					return elem.getAttribute("value") === null ? "on" : elem.value;
  3.1694 -				}
  3.1695 -				
  3.1696 -
  3.1697 -				// Everything else, we just grab the value
  3.1698 -				return (elem.value || "").replace(rreturn, "");
  3.1699 -
  3.1700 -			}
  3.1701 -
  3.1702 -			return undefined;
  3.1703 -		}
  3.1704 -
  3.1705 -		var isFunction = jQuery.isFunction(value);
  3.1706 -
  3.1707 -		return this.each(function(i) {
  3.1708 -			var self = jQuery(this), val = value;
  3.1709 -
  3.1710 -			if ( this.nodeType !== 1 ) {
  3.1711 -				return;
  3.1712 -			}
  3.1713 -
  3.1714 -			if ( isFunction ) {
  3.1715 -				val = value.call(this, i, self.val());
  3.1716 -			}
  3.1717 -
  3.1718 -			// Treat null/undefined as ""; convert numbers to string
  3.1719 -			if ( val == null ) {
  3.1720 -				val = "";
  3.1721 -			} else if ( typeof val === "number" ) {
  3.1722 -				val += "";
  3.1723 -			} else if ( jQuery.isArray(val) ) {
  3.1724 -				val = jQuery.map(val, function (value) {
  3.1725 -					return value == null ? "" : value + "";
  3.1726 -				});
  3.1727 -			}
  3.1728 -
  3.1729 -			if ( jQuery.isArray(val) && rradiocheck.test( this.type ) ) {
  3.1730 -				this.checked = jQuery.inArray( self.val(), val ) >= 0;
  3.1731 -
  3.1732 -			} else if ( jQuery.nodeName( this, "select" ) ) {
  3.1733 -				var values = jQuery.makeArray(val);
  3.1734 -
  3.1735 -				jQuery( "option", this ).each(function() {
  3.1736 -					this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
  3.1737 -				});
  3.1738 -
  3.1739 -				if ( !values.length ) {
  3.1740 -					this.selectedIndex = -1;
  3.1741 -				}
  3.1742 -
  3.1743 -			} else {
  3.1744 -				this.value = val;
  3.1745 -			}
  3.1746 -		});
  3.1747 -	}
  3.1748 -});
  3.1749 -
  3.1750 -jQuery.extend({
  3.1751 -	attrFn: {
  3.1752 -		val: true,
  3.1753 -		css: true,
  3.1754 -		html: true,
  3.1755 -		text: true,
  3.1756 -		data: true,
  3.1757 -		width: true,
  3.1758 -		height: true,
  3.1759 -		offset: true
  3.1760 -	},
  3.1761 -		
  3.1762 -	attr: function( elem, name, value, pass ) {
  3.1763 -		// don't set attributes on text and comment nodes
  3.1764 -		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
  3.1765 -			return undefined;
  3.1766 -		}
  3.1767 -
  3.1768 -		if ( pass && name in jQuery.attrFn ) {
  3.1769 -			return jQuery(elem)[name](value);
  3.1770 -		}
  3.1771 -
  3.1772 -		var notxml = elem.nodeType !== 1 || !jQuery.isXMLDoc( elem ),
  3.1773 -			// Whether we are setting (or getting)
  3.1774 -			set = value !== undefined;
  3.1775 -
  3.1776 -		// Try to normalize/fix the name
  3.1777 -		name = notxml && jQuery.props[ name ] || name;
  3.1778 -
  3.1779 -		// These attributes require special treatment
  3.1780 -		var special = rspecialurl.test( name );
  3.1781 -
  3.1782 -		// Safari mis-reports the default selected property of an option
  3.1783 -		// Accessing the parent's selectedIndex property fixes it
  3.1784 -		if ( name === "selected" && !jQuery.support.optSelected ) {
  3.1785 -			var parent = elem.parentNode;
  3.1786 -			if ( parent ) {
  3.1787 -				parent.selectedIndex;
  3.1788 -
  3.1789 -				// Make sure that it also works with optgroups, see #5701
  3.1790 -				if ( parent.parentNode ) {
  3.1791 -					parent.parentNode.selectedIndex;
  3.1792 -				}
  3.1793 -			}
  3.1794 -		}
  3.1795 -
  3.1796 -		// If applicable, access the attribute via the DOM 0 way
  3.1797 -		// 'in' checks fail in Blackberry 4.7 #6931
  3.1798 -		if ( (name in elem || elem[ name ] !== undefined) && notxml && !special ) {
  3.1799 -			if ( set ) {
  3.1800 -				// We can't allow the type property to be changed (since it causes problems in IE)
  3.1801 -				if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {
  3.1802 -					jQuery.error( "type property can't be changed" );
  3.1803 -				}
  3.1804 -
  3.1805 -				if ( value === null ) {
  3.1806 -					if ( elem.nodeType === 1 ) {
  3.1807 -						elem.removeAttribute( name );
  3.1808 -					}
  3.1809 -
  3.1810 -				} else {
  3.1811 -					elem[ name ] = value;
  3.1812 -				}
  3.1813 -			}
  3.1814 -
  3.1815 -			// browsers index elements by id/name on forms, give priority to attributes.
  3.1816 -			if ( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) ) {
  3.1817 -				return elem.getAttributeNode( name ).nodeValue;
  3.1818 -			}
  3.1819 -
  3.1820 -			// elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
  3.1821 -			// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
  3.1822 -			if ( name === "tabIndex" ) {
  3.1823 -				var attributeNode = elem.getAttributeNode( "tabIndex" );
  3.1824 -
  3.1825 -				return attributeNode && attributeNode.specified ?
  3.1826 -					attributeNode.value :
  3.1827 -					rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
  3.1828 -						0 :
  3.1829 -						undefined;
  3.1830 -			}
  3.1831 -
  3.1832 -			return elem[ name ];
  3.1833 -		}
  3.1834 -
  3.1835 -		if ( !jQuery.support.style && notxml && name === "style" ) {
  3.1836 -			if ( set ) {
  3.1837 -				elem.style.cssText = "" + value;
  3.1838 -			}
  3.1839 -
  3.1840 -			return elem.style.cssText;
  3.1841 -		}
  3.1842 -
  3.1843 -		if ( set ) {
  3.1844 -			// convert the value to a string (all browsers do this but IE) see #1070
  3.1845 -			elem.setAttribute( name, "" + value );
  3.1846 -		}
  3.1847 -
  3.1848 -		// Ensure that missing attributes return undefined
  3.1849 -		// Blackberry 4.7 returns "" from getAttribute #6938
  3.1850 -		if ( !elem.attributes[ name ] && (elem.hasAttribute && !elem.hasAttribute( name )) ) {
  3.1851 -			return undefined;
  3.1852 -		}
  3.1853 -
  3.1854 -		var attr = !jQuery.support.hrefNormalized && notxml && special ?
  3.1855 -				// Some attributes require a special call on IE
  3.1856 -				elem.getAttribute( name, 2 ) :
  3.1857 -				elem.getAttribute( name );
  3.1858 -
  3.1859 -		// Non-existent attributes return null, we normalize to undefined
  3.1860 -		return attr === null ? undefined : attr;
  3.1861 -	}
  3.1862 -});
  3.1863 -
  3.1864 -
  3.1865 -
  3.1866 -
  3.1867 -var rnamespaces = /\.(.*)$/,
  3.1868 -	rformElems = /^(?:textarea|input|select)$/i,
  3.1869 -	rperiod = /\./g,
  3.1870 -	rspace = / /g,
  3.1871 -	rescape = /[^\w\s.|`]/g,
  3.1872 -	fcleanup = function( nm ) {
  3.1873 -		return nm.replace(rescape, "\\$&");
  3.1874 -	},
  3.1875 -	focusCounts = { focusin: 0, focusout: 0 };
  3.1876 -
  3.1877 -/*
  3.1878 - * A number of helper functions used for managing events.
  3.1879 - * Many of the ideas behind this code originated from
  3.1880 - * Dean Edwards' addEvent library.
  3.1881 - */
  3.1882 -jQuery.event = {
  3.1883 -
  3.1884 -	// Bind an event to an element
  3.1885 -	// Original by Dean Edwards
  3.1886 -	add: function( elem, types, handler, data ) {
  3.1887 -		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
  3.1888 -			return;
  3.1889 -		}
  3.1890 -
  3.1891 -		// For whatever reason, IE has trouble passing the window object
  3.1892 -		// around, causing it to be cloned in the process
  3.1893 -		if ( jQuery.isWindow( elem ) && ( elem !== window && !elem.frameElement ) ) {
  3.1894 -			elem = window;
  3.1895 -		}
  3.1896 -
  3.1897 -		if ( handler === false ) {
  3.1898 -			handler = returnFalse;
  3.1899 -		} else if ( !handler ) {
  3.1900 -			// Fixes bug #7229. Fix recommended by jdalton
  3.1901 -		  return;
  3.1902 -		}
  3.1903 -
  3.1904 -		var handleObjIn, handleObj;
  3.1905 -
  3.1906 -		if ( handler.handler ) {
  3.1907 -			handleObjIn = handler;
  3.1908 -			handler = handleObjIn.handler;
  3.1909 -		}
  3.1910 -
  3.1911 -		// Make sure that the function being executed has a unique ID
  3.1912 -		if ( !handler.guid ) {
  3.1913 -			handler.guid = jQuery.guid++;
  3.1914 -		}
  3.1915 -
  3.1916 -		// Init the element's event structure
  3.1917 -		var elemData = jQuery.data( elem );
  3.1918 -
  3.1919 -		// If no elemData is found then we must be trying to bind to one of the
  3.1920 -		// banned noData elements
  3.1921 -		if ( !elemData ) {
  3.1922 -			return;
  3.1923 -		}
  3.1924 -
  3.1925 -		// Use a key less likely to result in collisions for plain JS objects.
  3.1926 -		// Fixes bug #7150.
  3.1927 -		var eventKey = elem.nodeType ? "events" : "__events__",
  3.1928 -			events = elemData[ eventKey ],
  3.1929 -			eventHandle = elemData.handle;
  3.1930 -			
  3.1931 -		if ( typeof events === "function" ) {
  3.1932 -			// On plain objects events is a fn that holds the the data
  3.1933 -			// which prevents this data from being JSON serialized
  3.1934 -			// the function does not need to be called, it just contains the data
  3.1935 -			eventHandle = events.handle;
  3.1936 -			events = events.events;
  3.1937 -
  3.1938 -		} else if ( !events ) {
  3.1939 -			if ( !elem.nodeType ) {
  3.1940 -				// On plain objects, create a fn that acts as the holder
  3.1941 -				// of the values to avoid JSON serialization of event data
  3.1942 -				elemData[ eventKey ] = elemData = function(){};
  3.1943 -			}
  3.1944 -
  3.1945 -			elemData.events = events = {};
  3.1946 -		}
  3.1947 -
  3.1948 -		if ( !eventHandle ) {
  3.1949 -			elemData.handle = eventHandle = function() {
  3.1950 -				// Handle the second event of a trigger and when
  3.1951 -				// an event is called after a page has unloaded
  3.1952 -				return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
  3.1953 -					jQuery.event.handle.apply( eventHandle.elem, arguments ) :
  3.1954 -					undefined;
  3.1955 -			};
  3.1956 -		}
  3.1957 -
  3.1958 -		// Add elem as a property of the handle function
  3.1959 -		// This is to prevent a memory leak with non-native events in IE.
  3.1960 -		eventHandle.elem = elem;
  3.1961 -
  3.1962 -		// Handle multiple events separated by a space
  3.1963 -		// jQuery(...).bind("mouseover mouseout", fn);
  3.1964 -		types = types.split(" ");
  3.1965 -
  3.1966 -		var type, i = 0, namespaces;
  3.1967 -
  3.1968 -		while ( (type = types[ i++ ]) ) {
  3.1969 -			handleObj = handleObjIn ?
  3.1970 -				jQuery.extend({}, handleObjIn) :
  3.1971 -				{ handler: handler, data: data };
  3.1972 -
  3.1973 -			// Namespaced event handlers
  3.1974 -			if ( type.indexOf(".") > -1 ) {
  3.1975 -				namespaces = type.split(".");
  3.1976 -				type = namespaces.shift();
  3.1977 -				handleObj.namespace = namespaces.slice(0).sort().join(".");
  3.1978 -
  3.1979 -			} else {
  3.1980 -				namespaces = [];
  3.1981 -				handleObj.namespace = "";
  3.1982 -			}
  3.1983 -
  3.1984 -			handleObj.type = type;
  3.1985 -			if ( !handleObj.guid ) {
  3.1986 -				handleObj.guid = handler.guid;
  3.1987 -			}
  3.1988 -
  3.1989 -			// Get the current list of functions bound to this event
  3.1990 -			var handlers = events[ type ],
  3.1991 -				special = jQuery.event.special[ type ] || {};
  3.1992 -
  3.1993 -			// Init the event handler queue
  3.1994 -			if ( !handlers ) {
  3.1995 -				handlers = events[ type ] = [];
  3.1996 -
  3.1997 -				// Check for a special event handler
  3.1998 -				// Only use addEventListener/attachEvent if the special
  3.1999 -				// events handler returns false
  3.2000 -				if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
  3.2001 -					// Bind the global event handler to the element
  3.2002 -					if ( elem.addEventListener ) {
  3.2003 -						elem.addEventListener( type, eventHandle, false );
  3.2004 -
  3.2005 -					} else if ( elem.attachEvent ) {
  3.2006 -						elem.attachEvent( "on" + type, eventHandle );
  3.2007 -					}
  3.2008 -				}
  3.2009 -			}
  3.2010 -			
  3.2011 -			if ( special.add ) { 
  3.2012 -				special.add.call( elem, handleObj ); 
  3.2013 -
  3.2014 -				if ( !handleObj.handler.guid ) {
  3.2015 -					handleObj.handler.guid = handler.guid;
  3.2016 -				}
  3.2017 -			}
  3.2018 -
  3.2019 -			// Add the function to the element's handler list
  3.2020 -			handlers.push( handleObj );
  3.2021 -
  3.2022 -			// Keep track of which events have been used, for global triggering
  3.2023 -			jQuery.event.global[ type ] = true;
  3.2024 -		}
  3.2025 -
  3.2026 -		// Nullify elem to prevent memory leaks in IE
  3.2027 -		elem = null;
  3.2028 -	},
  3.2029 -
  3.2030 -	global: {},
  3.2031 -
  3.2032 -	// Detach an event or set of events from an element
  3.2033 -	remove: function( elem, types, handler, pos ) {
  3.2034 -		// don't do events on text and comment nodes
  3.2035 -		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
  3.2036 -			return;
  3.2037 -		}
  3.2038 -
  3.2039 -		if ( handler === false ) {
  3.2040 -			handler = returnFalse;
  3.2041 -		}
  3.2042 -
  3.2043 -		var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
  3.2044 -			eventKey = elem.nodeType ? "events" : "__events__",
  3.2045 -			elemData = jQuery.data( elem ),
  3.2046 -			events = elemData && elemData[ eventKey ];
  3.2047 -
  3.2048 -		if ( !elemData || !events ) {
  3.2049 -			return;
  3.2050 -		}
  3.2051 -		
  3.2052 -		if ( typeof events === "function" ) {
  3.2053 -			elemData = events;
  3.2054 -			events = events.events;
  3.2055 -		}
  3.2056 -
  3.2057 -		// types is actually an event object here
  3.2058 -		if ( types && types.type ) {
  3.2059 -			handler = types.handler;
  3.2060 -			types = types.type;
  3.2061 -		}
  3.2062 -
  3.2063 -		// Unbind all events for the element
  3.2064 -		if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
  3.2065 -			types = types || "";
  3.2066 -
  3.2067 -			for ( type in events ) {
  3.2068 -				jQuery.event.remove( elem, type + types );
  3.2069 -			}
  3.2070 -
  3.2071 -			return;
  3.2072 -		}
  3.2073 -
  3.2074 -		// Handle multiple events separated by a space
  3.2075 -		// jQuery(...).unbind("mouseover mouseout", fn);
  3.2076 -		types = types.split(" ");
  3.2077 -
  3.2078 -		while ( (type = types[ i++ ]) ) {
  3.2079 -			origType = type;
  3.2080 -			handleObj = null;
  3.2081 -			all = type.indexOf(".") < 0;
  3.2082 -			namespaces = [];
  3.2083 -
  3.2084 -			if ( !all ) {
  3.2085 -				// Namespaced event handlers
  3.2086 -				namespaces = type.split(".");
  3.2087 -				type = namespaces.shift();
  3.2088 -
  3.2089 -				namespace = new RegExp("(^|\\.)" + 
  3.2090 -					jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)");
  3.2091 -			}
  3.2092 -
  3.2093 -			eventType = events[ type ];
  3.2094 -
  3.2095 -			if ( !eventType ) {
  3.2096 -				continue;
  3.2097 -			}
  3.2098 -
  3.2099 -			if ( !handler ) {
  3.2100 -				for ( j = 0; j < eventType.length; j++ ) {
  3.2101 -					handleObj = eventType[ j ];
  3.2102 -
  3.2103 -					if ( all || namespace.test( handleObj.namespace ) ) {
  3.2104 -						jQuery.event.remove( elem, origType, handleObj.handler, j );
  3.2105 -						eventType.splice( j--, 1 );
  3.2106 -					}
  3.2107 -				}
  3.2108 -
  3.2109 -				continue;
  3.2110 -			}
  3.2111 -
  3.2112 -			special = jQuery.event.special[ type ] || {};
  3.2113 -
  3.2114 -			for ( j = pos || 0; j < eventType.length; j++ ) {
  3.2115 -				handleObj = eventType[ j ];
  3.2116 -
  3.2117 -				if ( handler.guid === handleObj.guid ) {
  3.2118 -					// remove the given handler for the given type
  3.2119 -					if ( all || namespace.test( handleObj.namespace ) ) {
  3.2120 -						if ( pos == null ) {
  3.2121 -							eventType.splice( j--, 1 );
  3.2122 -						}
  3.2123 -
  3.2124 -						if ( special.remove ) {
  3.2125 -							special.remove.call( elem, handleObj );
  3.2126 -						}
  3.2127 -					}
  3.2128 -
  3.2129 -					if ( pos != null ) {
  3.2130 -						break;
  3.2131 -					}
  3.2132 -				}
  3.2133 -			}
  3.2134 -
  3.2135 -			// remove generic event handler if no more handlers exist
  3.2136 -			if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
  3.2137 -				if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
  3.2138 -					jQuery.removeEvent( elem, type, elemData.handle );
  3.2139 -				}
  3.2140 -
  3.2141 -				ret = null;
  3.2142 -				delete events[ type ];
  3.2143 -			}
  3.2144 -		}
  3.2145 -
  3.2146 -		// Remove the expando if it's no longer used
  3.2147 -		if ( jQuery.isEmptyObject( events ) ) {
  3.2148 -			var handle = elemData.handle;
  3.2149 -			if ( handle ) {
  3.2150 -				handle.elem = null;
  3.2151 -			}
  3.2152 -
  3.2153 -			delete elemData.events;
  3.2154 -			delete elemData.handle;
  3.2155 -
  3.2156 -			if ( typeof elemData === "function" ) {
  3.2157 -				jQuery.removeData( elem, eventKey );
  3.2158 -
  3.2159 -			} else if ( jQuery.isEmptyObject( elemData ) ) {
  3.2160 -				jQuery.removeData( elem );
  3.2161 -			}
  3.2162 -		}
  3.2163 -	},
  3.2164 -
  3.2165 -	// bubbling is internal
  3.2166 -	trigger: function( event, data, elem /*, bubbling */ ) {
  3.2167 -		// Event object or event type
  3.2168 -		var type = event.type || event,
  3.2169 -			bubbling = arguments[3];
  3.2170 -
  3.2171 -		if ( !bubbling ) {
  3.2172 -			event = typeof event === "object" ?
  3.2173 -				// jQuery.Event object
  3.2174 -				event[ jQuery.expando ] ? event :
  3.2175 -				// Object literal
  3.2176 -				jQuery.extend( jQuery.Event(type), event ) :
  3.2177 -				// Just the event type (string)
  3.2178 -				jQuery.Event(type);
  3.2179 -
  3.2180 -			if ( type.indexOf("!") >= 0 ) {
  3.2181 -				event.type = type = type.slice(0, -1);
  3.2182 -				event.exclusive = true;
  3.2183 -			}
  3.2184 -
  3.2185 -			// Handle a global trigger
  3.2186 -			if ( !elem ) {
  3.2187 -				// Don't bubble custom events when global (to avoid too much overhead)
  3.2188 -				event.stopPropagation();
  3.2189 -
  3.2190 -				// Only trigger if we've ever bound an event for it
  3.2191 -				if ( jQuery.event.global[ type ] ) {
  3.2192 -					jQuery.each( jQuery.cache, function() {
  3.2193 -						if ( this.events && this.events[type] ) {
  3.2194 -							jQuery.event.trigger( event, data, this.handle.elem );
  3.2195 -						}
  3.2196 -					});
  3.2197 -				}
  3.2198 -			}
  3.2199 -
  3.2200 -			// Handle triggering a single element
  3.2201 -
  3.2202 -			// don't do events on text and comment nodes
  3.2203 -			if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 ) {
  3.2204 -				return undefined;
  3.2205 -			}
  3.2206 -
  3.2207 -			// Clean up in case it is reused
  3.2208 -			event.result = undefined;
  3.2209 -			event.target = elem;
  3.2210 -
  3.2211 -			// Clone the incoming data, if any
  3.2212 -			data = jQuery.makeArray( data );
  3.2213 -			data.unshift( event );
  3.2214 -		}
  3.2215 -
  3.2216 -		event.currentTarget = elem;
  3.2217 -
  3.2218 -		// Trigger the event, it is assumed that "handle" is a function
  3.2219 -		var handle = elem.nodeType ?
  3.2220 -			jQuery.data( elem, "handle" ) :
  3.2221 -			(jQuery.data( elem, "__events__" ) || {}).handle;
  3.2222 -
  3.2223 -		if ( handle ) {
  3.2224 -			handle.apply( elem, data );
  3.2225 -		}
  3.2226 -
  3.2227 -		var parent = elem.parentNode || elem.ownerDocument;
  3.2228 -
  3.2229 -		// Trigger an inline bound script
  3.2230 -		try {
  3.2231 -			if ( !(elem && elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()]) ) {
  3.2232 -				if ( elem[ "on" + type ] && elem[ "on" + type ].apply( elem, data ) === false ) {
  3.2233 -					event.result = false;
  3.2234 -					event.preventDefault();
  3.2235 -				}
  3.2236 -			}
  3.2237 -
  3.2238 -		// prevent IE from throwing an error for some elements with some event types, see #3533
  3.2239 -		} catch (inlineError) {}
  3.2240 -
  3.2241 -		if ( !event.isPropagationStopped() && parent ) {
  3.2242 -			jQuery.event.trigger( event, data, parent, true );
  3.2243 -
  3.2244 -		} else if ( !event.isDefaultPrevented() ) {
  3.2245 -			var old,
  3.2246 -				target = event.target,
  3.2247 -				targetType = type.replace( rnamespaces, "" ),
  3.2248 -				isClick = jQuery.nodeName( target, "a" ) && targetType === "click",
  3.2249 -				special = jQuery.event.special[ targetType ] || {};
  3.2250 -
  3.2251 -			if ( (!special._default || special._default.call( elem, event ) === false) && 
  3.2252 -				!isClick && !(target && target.nodeName && jQuery.noData[target.nodeName.toLowerCase()]) ) {
  3.2253 -
  3.2254 -				try {
  3.2255 -					if ( target[ targetType ] ) {
  3.2256 -						// Make sure that we don't accidentally re-trigger the onFOO events
  3.2257 -						old = target[ "on" + targetType ];
  3.2258 -
  3.2259 -						if ( old ) {
  3.2260 -							target[ "on" + targetType ] = null;
  3.2261 -						}
  3.2262 -
  3.2263 -						jQuery.event.triggered = true;
  3.2264 -						target[ targetType ]();
  3.2265 -					}
  3.2266 -
  3.2267 -				// prevent IE from throwing an error for some elements with some event types, see #3533
  3.2268 -				} catch (triggerError) {}
  3.2269 -
  3.2270 -				if ( old ) {
  3.2271 -					target[ "on" + targetType ] = old;
  3.2272 -				}
  3.2273 -
  3.2274 -				jQuery.event.triggered = false;
  3.2275 -			}
  3.2276 -		}
  3.2277 -	},
  3.2278 -
  3.2279 -	handle: function( event ) {
  3.2280 -		var all, handlers, namespaces, namespace_re, events,
  3.2281 -			namespace_sort = [],
  3.2282 -			args = jQuery.makeArray( arguments );
  3.2283 -
  3.2284 -		event = args[0] = jQuery.event.fix( event || window.event );
  3.2285 -		event.currentTarget = this;
  3.2286 -
  3.2287 -		// Namespaced event handlers
  3.2288 -		all = event.type.indexOf(".") < 0 && !event.exclusive;
  3.2289 -
  3.2290 -		if ( !all ) {
  3.2291 -			namespaces = event.type.split(".");
  3.2292 -			event.type = namespaces.shift();
  3.2293 -			namespace_sort = namespaces.slice(0).sort();
  3.2294 -			namespace_re = new RegExp("(^|\\.)" + namespace_sort.join("\\.(?:.*\\.)?") + "(\\.|$)");
  3.2295 -		}
  3.2296 -
  3.2297 -		event.namespace = event.namespace || namespace_sort.join(".");
  3.2298 -
  3.2299 -		events = jQuery.data(this, this.nodeType ? "events" : "__events__");
  3.2300 -
  3.2301 -		if ( typeof events === "function" ) {
  3.2302 -			events = events.events;
  3.2303 -		}
  3.2304 -
  3.2305 -		handlers = (events || {})[ event.type ];
  3.2306 -
  3.2307 -		if ( events && handlers ) {
  3.2308 -			// Clone the handlers to prevent manipulation
  3.2309 -			handlers = handlers.slice(0);
  3.2310 -
  3.2311 -			for ( var j = 0, l = handlers.length; j < l; j++ ) {
  3.2312 -				var handleObj = handlers[ j ];
  3.2313 -
  3.2314 -				// Filter the functions by class
  3.2315 -				if ( all || namespace_re.test( handleObj.namespace ) ) {
  3.2316 -					// Pass in a reference to the handler function itself
  3.2317 -					// So that we can later remove it
  3.2318 -					event.handler = handleObj.handler;
  3.2319 -					event.data = handleObj.data;
  3.2320 -					event.handleObj = handleObj;
  3.2321 -	
  3.2322 -					var ret = handleObj.handler.apply( this, args );
  3.2323 -
  3.2324 -					if ( ret !== undefined ) {
  3.2325 -						event.result = ret;
  3.2326 -						if ( ret === false ) {
  3.2327 -							event.preventDefault();
  3.2328 -							event.stopPropagation();
  3.2329 -						}
  3.2330 -					}
  3.2331 -
  3.2332 -					if ( event.isImmediatePropagationStopped() ) {
  3.2333 -						break;
  3.2334 -					}
  3.2335 -				}
  3.2336 -			}
  3.2337 -		}
  3.2338 -
  3.2339 -		return event.result;
  3.2340 -	},
  3.2341 -
  3.2342 -	props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
  3.2343 -
  3.2344 -	fix: function( event ) {
  3.2345 -		if ( event[ jQuery.expando ] ) {
  3.2346 -			return event;
  3.2347 -		}
  3.2348 -
  3.2349 -		// store a copy of the original event object
  3.2350 -		// and "clone" to set read-only properties
  3.2351 -		var originalEvent = event;
  3.2352 -		event = jQuery.Event( originalEvent );
  3.2353 -
  3.2354 -		for ( var i = this.props.length, prop; i; ) {
  3.2355 -			prop = this.props[ --i ];
  3.2356 -			event[ prop ] = originalEvent[ prop ];
  3.2357 -		}
  3.2358 -
  3.2359 -		// Fix target property, if necessary
  3.2360 -		if ( !event.target ) {
  3.2361 -			// Fixes #1925 where srcElement might not be defined either
  3.2362 -			event.target = event.srcElement || document;
  3.2363 -		}
  3.2364 -
  3.2365 -		// check if target is a textnode (safari)
  3.2366 -		if ( event.target.nodeType === 3 ) {
  3.2367 -			event.target = event.target.parentNode;
  3.2368 -		}
  3.2369 -
  3.2370 -		// Add relatedTarget, if necessary
  3.2371 -		if ( !event.relatedTarget && event.fromElement ) {
  3.2372 -			event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
  3.2373 -		}
  3.2374 -
  3.2375 -		// Calculate pageX/Y if missing and clientX/Y available
  3.2376 -		if ( event.pageX == null && event.clientX != null ) {
  3.2377 -			var doc = document.documentElement,
  3.2378 -				body = document.body;
  3.2379 -
  3.2380 -			event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
  3.2381 -			event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
  3.2382 -		}
  3.2383 -
  3.2384 -		// Add which for key events
  3.2385 -		if ( event.which == null && (event.charCode != null || event.keyCode != null) ) {
  3.2386 -			event.which = event.charCode != null ? event.charCode : event.keyCode;
  3.2387 -		}
  3.2388 -
  3.2389 -		// Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
  3.2390 -		if ( !event.metaKey && event.ctrlKey ) {
  3.2391 -			event.metaKey = event.ctrlKey;
  3.2392 -		}
  3.2393 -
  3.2394 -		// Add which for click: 1 === left; 2 === middle; 3 === right
  3.2395 -		// Note: button is not normalized, so don't use it
  3.2396 -		if ( !event.which && event.button !== undefined ) {
  3.2397 -			event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
  3.2398 -		}
  3.2399 -
  3.2400 -		return event;
  3.2401 -	},
  3.2402 -
  3.2403 -	// Deprecated, use jQuery.guid instead
  3.2404 -	guid: 1E8,
  3.2405 -
  3.2406 -	// Deprecated, use jQuery.proxy instead
  3.2407 -	proxy: jQuery.proxy,
  3.2408 -
  3.2409 -	special: {
  3.2410 -		ready: {
  3.2411 -			// Make sure the ready event is setup
  3.2412 -			setup: jQuery.bindReady,
  3.2413 -			teardown: jQuery.noop
  3.2414 -		},
  3.2415 -
  3.2416 -		live: {
  3.2417 -			add: function( handleObj ) {
  3.2418 -				jQuery.event.add( this,
  3.2419 -					liveConvert( handleObj.origType, handleObj.selector ),
  3.2420 -					jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) ); 
  3.2421 -			},
  3.2422 -
  3.2423 -			remove: function( handleObj ) {
  3.2424 -				jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj );
  3.2425 -			}
  3.2426 -		},
  3.2427 -
  3.2428 -		beforeunload: {
  3.2429 -			setup: function( data, namespaces, eventHandle ) {
  3.2430 -				// We only want to do this special case on windows
  3.2431 -				if ( jQuery.isWindow( this ) ) {
  3.2432 -					this.onbeforeunload = eventHandle;
  3.2433 -				}
  3.2434 -			},
  3.2435 -
  3.2436 -			teardown: function( namespaces, eventHandle ) {
  3.2437 -				if ( this.onbeforeunload === eventHandle ) {
  3.2438 -					this.onbeforeunload = null;
  3.2439 -				}
  3.2440 -			}
  3.2441 -		}
  3.2442 -	}
  3.2443 -};
  3.2444 -
  3.2445 -jQuery.removeEvent = document.removeEventListener ?
  3.2446 -	function( elem, type, handle ) {
  3.2447 -		if ( elem.removeEventListener ) {
  3.2448 -			elem.removeEventListener( type, handle, false );
  3.2449 -		}
  3.2450 -	} : 
  3.2451 -	function( elem, type, handle ) {
  3.2452 -		if ( elem.detachEvent ) {
  3.2453 -			elem.detachEvent( "on" + type, handle );
  3.2454 -		}
  3.2455 -	};
  3.2456 -
  3.2457 -jQuery.Event = function( src ) {
  3.2458 -	// Allow instantiation without the 'new' keyword
  3.2459 -	if ( !this.preventDefault ) {
  3.2460 -		return new jQuery.Event( src );
  3.2461 -	}
  3.2462 -
  3.2463 -	// Event object
  3.2464 -	if ( src && src.type ) {
  3.2465 -		this.originalEvent = src;
  3.2466 -		this.type = src.type;
  3.2467 -	// Event type
  3.2468 -	} else {
  3.2469 -		this.type = src;
  3.2470 -	}
  3.2471 -
  3.2472 -	// timeStamp is buggy for some events on Firefox(#3843)
  3.2473 -	// So we won't rely on the native value
  3.2474 -	this.timeStamp = jQuery.now();
  3.2475 -
  3.2476 -	// Mark it as fixed
  3.2477 -	this[ jQuery.expando ] = true;
  3.2478 -};
  3.2479 -
  3.2480 -function returnFalse() {
  3.2481 -	return false;
  3.2482 -}
  3.2483 -function returnTrue() {
  3.2484 -	return true;
  3.2485 -}
  3.2486 -
  3.2487 -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
  3.2488 -// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
  3.2489 -jQuery.Event.prototype = {
  3.2490 -	preventDefault: function() {
  3.2491 -		this.isDefaultPrevented = returnTrue;
  3.2492 -
  3.2493 -		var e = this.originalEvent;
  3.2494 -		if ( !e ) {
  3.2495 -			return;
  3.2496 -		}
  3.2497 -		
  3.2498 -		// if preventDefault exists run it on the original event
  3.2499 -		if ( e.preventDefault ) {
  3.2500 -			e.preventDefault();
  3.2501 -
  3.2502 -		// otherwise set the returnValue property of the original event to false (IE)
  3.2503 -		} else {
  3.2504 -			e.returnValue = false;
  3.2505 -		}
  3.2506 -	},
  3.2507 -	stopPropagation: function() {
  3.2508 -		this.isPropagationStopped = returnTrue;
  3.2509 -
  3.2510 -		var e = this.originalEvent;
  3.2511 -		if ( !e ) {
  3.2512 -			return;
  3.2513 -		}
  3.2514 -		// if stopPropagation exists run it on the original event
  3.2515 -		if ( e.stopPropagation ) {
  3.2516 -			e.stopPropagation();
  3.2517 -		}
  3.2518 -		// otherwise set the cancelBubble property of the original event to true (IE)
  3.2519 -		e.cancelBubble = true;
  3.2520 -	},
  3.2521 -	stopImmediatePropagation: function() {
  3.2522 -		this.isImmediatePropagationStopped = returnTrue;
  3.2523 -		this.stopPropagation();
  3.2524 -	},
  3.2525 -	isDefaultPrevented: returnFalse,
  3.2526 -	isPropagationStopped: returnFalse,
  3.2527 -	isImmediatePropagationStopped: returnFalse
  3.2528 -};
  3.2529 -
  3.2530 -// Checks if an event happened on an element within another element
  3.2531 -// Used in jQuery.event.special.mouseenter and mouseleave handlers
  3.2532 -var withinElement = function( event ) {
  3.2533 -	// Check if mouse(over|out) are still within the same parent element
  3.2534 -	var parent = event.relatedTarget;
  3.2535 -
  3.2536 -	// Firefox sometimes assigns relatedTarget a XUL element
  3.2537 -	// which we cannot access the parentNode property of
  3.2538 -	try {
  3.2539 -		// Traverse up the tree
  3.2540 -		while ( parent && parent !== this ) {
  3.2541 -			parent = parent.parentNode;
  3.2542 -		}
  3.2543 -
  3.2544 -		if ( parent !== this ) {
  3.2545 -			// set the correct event type
  3.2546 -			event.type = event.data;
  3.2547 -
  3.2548 -			// handle event if we actually just moused on to a non sub-element
  3.2549 -			jQuery.event.handle.apply( this, arguments );
  3.2550 -		}
  3.2551 -
  3.2552 -	// assuming we've left the element since we most likely mousedover a xul element
  3.2553 -	} catch(e) { }
  3.2554 -},
  3.2555 -
  3.2556 -// In case of event delegation, we only need to rename the event.type,
  3.2557 -// liveHandler will take care of the rest.
  3.2558 -delegate = function( event ) {
  3.2559 -	event.type = event.data;