Skip to content

Commit 7475548

Browse files
ptrdopsylwester
authored andcommitted
Strict Standard
1 parent e34ca55 commit 7475548

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ Per this example (above), the code will replicate the element with the `itemprop
147147
import templater from "./path/to/microdata-template.js";
148148

149149
let itemToReplicate = document.querySelector("[itemprop][hidden]"); // the template
150-
let parentOfClones = document.getElementById("months"); // the parent of the template
150+
let parentOfClones = document.getElementById("months"); // the parent of the template works when strictStandards: true;
151151

152-
templater.render(itemToReplicate||parentOfClones, myData); // either works when strictStandards = true;
152+
templater.render(itemToReplicate||parentOfClones, myData); // either works when strictStandards: true;
153153
```
154154

155155
>**NOTE:** The [microdata specification](https://www.w3.org/TR/microdata/) requires an element with an `itemscope` attribute to also have either an `itemref` or `itemtype` attribute, but this rule is not enforced here.

0 commit comments

Comments
 (0)