Skip to content

Commit

Permalink
Strict Standard
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrdo authored and psylwester committed Sep 16, 2019
1 parent e34ca55 commit 7475548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ Per this example (above), the code will replicate the element with the `itemprop
import templater from "./path/to/microdata-template.js";

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

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

>**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.
Expand Down

0 comments on commit 7475548

Please sign in to comment.