diff --git a/js/core/biblio.js b/js/core/biblio.js index 5f7acfc2fc..71fa274fb5 100644 --- a/js/core/biblio.js +++ b/js/core/biblio.js @@ -78,7 +78,7 @@ define( $sec.makeID(null, type + " references"); refs.sort(); var $dl = $("
{{#unless isIGNote}}
This document was produced by a group operating under the
- 5 February 2004 W3C Patent
Policy.
{{/unless}}
diff --git a/tests/spec/core/fix-headers-spec.js b/tests/spec/core/fix-headers-spec.js
index ce085f4e94..5254ade7a3 100644
--- a/tests/spec/core/fix-headers-spec.js
+++ b/tests/spec/core/fix-headers-spec.js
@@ -18,8 +18,8 @@ describe("Core - Fix headers", function () {
expect($s.find("h1").length).toEqual(0);
expect($s.find("h2").length).toEqual(1);
expect($s.find("h2").text()).toMatch(/ONE/);
- expect($s.find("h2").attr('resource')).toEqual('xhv:heading');
- expect($s.find("h2").attr('property')).toEqual('xhv:role');
+ expect($s.find("h2 > span").attr('resource')).toEqual('xhv:heading');
+ expect($s.find("h2 > span").attr('property')).toEqual('xhv:role');
expect($s.find("h3").length).toEqual(1);
expect($s.find("h3").text()).toMatch(/TWO/);
expect($s.find("h4").length).toEqual(1);
diff --git a/tests/spec/core/issues-notes-spec.js b/tests/spec/core/issues-notes-spec.js
index 967b9ac888..4af86a2803 100644
--- a/tests/spec/core/issues-notes-spec.js
+++ b/tests/spec/core/issues-notes-spec.js
@@ -77,6 +77,7 @@ describe("Core — Issues and Notes", function () {
, $i11 = $("#i11", doc).parent('div')
, $ixx = $("#ixx", doc).parent('div')
;
+ console.log($i10.innerHTML) ;
expect($i10.find("div.issue-title").length).toEqual(1);
expect($i10.find("div.issue-title").text()).toEqual("Issue 10");
diff --git a/tests/spec/core/structure-spec.js b/tests/spec/core/structure-spec.js
index 76eac7e0fc..3a85a1bdb1 100644
--- a/tests/spec/core/structure-spec.js
+++ b/tests/spec/core/structure-spec.js
@@ -23,8 +23,8 @@ describe("Core - Structure", function () {
var $toc = $("#toc", doc)
;
expect($toc.find("h2").text()).toEqual("Table of Contents");
- expect($toc.find("h2").attr('resource')).toEqual('xhv:heading');
- expect($toc.find("h2").attr('property')).toEqual('xhv:role');
+ expect($toc.find("h2 span").attr('resource')).toEqual('xhv:heading');
+ expect($toc.find("h2 span").attr('property')).toEqual('xhv:role');
expect($toc.find("ul:first").attr('role')).toEqual('directory');
expect($toc.find("> ul > li").length).toEqual(3);
expect($toc.find("li").length).toEqual(15);
diff --git a/tests/spec/w3c/abstract-spec.js b/tests/spec/w3c/abstract-spec.js
index a74212b662..19477ab6aa 100644
--- a/tests/spec/w3c/abstract-spec.js
+++ b/tests/spec/w3c/abstract-spec.js
@@ -14,8 +14,8 @@ describe("W3C — Abstract", function () {
var $abs = $("#abstract", doc);
expect($abs.find("h2").length).toBeTruthy();
expect($abs.find("h2").text()).toEqual("Abstract");
- expect($abs.find("h2").attr('resource')).toEqual('xhv:heading');
- expect($abs.find("h2").attr('property')).toEqual('xhv:role');
+ expect($abs.find("h2 span").attr('resource')).toEqual('xhv:heading');
+ expect($abs.find("h2 span").attr('property')).toEqual('xhv:role');
expect($abs.hasClass("introductory")).toBeTruthy();
expect($abs.find("p").length).toBeTruthy();
flushIframes();
diff --git a/tests/spec/w3c/rdfa-spec.js b/tests/spec/w3c/rdfa-spec.js
index 3cc251cbb0..4be1957e05 100644
--- a/tests/spec/w3c/rdfa-spec.js
+++ b/tests/spec/w3c/rdfa-spec.js
@@ -32,29 +32,16 @@ describe("W3C — RDFa", function () {
company: "COMPANY",
companyURI: "http://COMPANY",
mailto: "EMAIL",
- note: "NOTE"}]
- , shortName: "some-spec"
- , publicationDate: "2013-06-25"
- , previousPublishDate: "2012-06-07"
- , previousMaturity: "REC"
- , specStatus: "PER"
- , wgPatentURI: "http://www.w3.org/fake-patent-uri"
- , doRDFa: "1.1"
- }
- , oldConfig = {
- editors: [{ name: "Shane McCarron",
- url: "http://URI",
- company: "COMPANY",
- companyURI: "http://COMPANY",
- mailto: "EMAIL",
- note: "NOTE"}]
+ note: "NOTE"},
+ { name: "Gregg Kellogg"}]
+ , authors: [{ name: "Gregg Kellogg"}, { name: "Shane McCarron"}]
, shortName: "some-spec"
, publicationDate: "2013-06-25"
, previousPublishDate: "2012-06-07"
, previousMaturity: "REC"
, specStatus: "PER"
, wgPatentURI: "http://www.w3.org/fake-patent-uri"
- , doRDFa: "1.0"
+ , doRDFa: true
}
, noConfig = {
editors: [{ name: "Shane McCarron",
@@ -63,6 +50,7 @@ describe("W3C — RDFa", function () {
companyURI: "http://COMPANY",
mailto: "EMAIL",
note: "NOTE"}]
+ , authors: [{ name: "Gregg Kellogg"}, { name: "Shane McCarron"}]
, shortName: "some-spec"
, publicationDate: "2013-06-25"
, previousPublishDate: "2012-06-07"
@@ -81,41 +69,60 @@ describe("W3C — RDFa", function () {
var $c = $("html", doc);
expect($c.attr('prefix')).toMatch(/bibo:/);
expect($c.attr('prefix')).toMatch(/w3p:/);
- expect($c.attr('prefix')).toNotMatch(/dcterms:/);
+ expect($c.attr('prefix')).toNotMatch(/dc:/);
expect($c.attr('prefix')).toNotMatch(/foaf:/);
expect($c.attr('prefix')).toNotMatch(/xsd:/);
expect($c.attr('typeof')).toMatch(/w3p:PER/);
expect($c.attr('typeof')).toMatch(/bibo:Document/);
- expect($c.attr('property')).toEqual("dcterms:language") ;
- expect($c.attr('content')).toEqual("en") ;
- expect($c.attr('about')).toEqual("") ;
+
+ var $lang = $("html>head>meta[property='dc:language']", doc) ;
+ expect($lang.attr('content')).toEqual("en") ;
flushIframes();
});
});
- it("should set the 1.0 document information", function () {
+ it("should set RDFa information on editors", function () {
var doc;
runs(function () {
- makeRSDoc({ config: oldConfig, body: $(" [[!DAHU]] [[REX]]Chapter