Skip to content

Commit 7c26bba

Browse files
author
aFarkas
committed
fix update readme with suggestion from @mhulse, @thomaswelton, @ Volker-E and @drzax (see Issue #104 and #98)
1 parent e5da0a9 commit 7c26bba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The HTML5 Shiv enables use of HTML5 sectioning elements in legacy Internet Explo
55
### What do these files do?
66

77
#### `html5shiv.js`
8-
* This includes the basic `createElement()` shiv technique, along with monkeypatches for `document.createElement` and `document.createDocumentFragment`. It also applies [basic styling](https://github.com/aFarkas/html5shiv/blob/4525162dd10e6fff7b83d06b28b562586e9fb058/src/html5shiv.js#L214-L217) for HTML5 elements.
8+
* This includes the basic `createElement()` shiv technique, along with monkeypatches for `document.createElement` and `document.createDocumentFragment` for IE6-8. It also applies [basic styling](https://github.com/aFarkas/html5shiv/blob/51da98dabd3c537891b7fe6114633fb10de52473/src/html5shiv.js#L216-220) for HTML5 elements for IE9, Safari 4.x and FF 3.x.
99

1010
####`html5shiv-printshiv.js`
1111
* This includes all of the above, as well as a mechanism allowing HTML5 elements to be styled and contain children while being printed in IE 6-8.
@@ -26,7 +26,7 @@ For the full story of HTML5 Shiv and all of the people involved in making it, re
2626

2727
This will clone the latest version of the HTML5 shiv into the `components` directory at the root of your project and also create or update the file `bower.json` which specifies your projects dependencies.
2828

29-
Include the HTML5 shiv at the top of your `<head>` in a conditional comment before any stylesheets.
29+
Include the HTML5 shiv at the top of your `<head>` in a conditional comment after any stylesheets.
3030

3131
```html
3232
<!--[if lt IE 9]>
@@ -78,10 +78,10 @@ window.html5 = {
7878

7979
### `html5.shivMethods`
8080

81-
If the `shivMethods` option is set to `true` (by default) HTML5 Shiv will override `document.createElement`/`document.createDocumentFragment` in IE8- to allow dynamic DOM creation of HTML5 elements.
81+
If the `shivMethods` option is set to `true` (by default) HTML5 Shiv will override `document.createElement`/`document.createDocumentFragment` in Internet Explorer 6-8 to allow dynamic DOM creation of HTML5 elements.
8282

8383
Known issue: If an element is created using the overridden `createElement` method this element returns a document fragment as its `parentNode`, but should be normally `null`. If a script relays on this behavior, `shivMethods`should be set to `false`.
84-
Note: jQuery 1.7+ has implemented his own HTML5 DOM creation fix for IE8-. If all your scripts (including Third party scripts) are using jQuery's manipulation and DOM creation methods, you might want to set this option to `false`.
84+
Note: jQuery 1.7+ has implemented his own HTML5 DOM creation fix for Internet Explorer 6-8. If all your scripts (including Third party scripts) are using jQuery's manipulation and DOM creation methods, you might want to set this option to `false`.
8585

8686
**Configuring `shivMethods` before `html5shiv.js` is included.**
8787

@@ -124,7 +124,7 @@ container.innerHTML = '<section>This is a section</section>';
124124

125125
- The `shivMethods` option (overriding `document.createElement`) and the `html5.createElement` method create elements, which are not disconnected and have a parentNode (see also issue #64)
126126
- The cloneNode problem is currently not addressed by HTML5 Shiv. HTML5 elements can be dynamically created, but can't be cloned in all cases.
127-
- The printshiv version of HTML5 Shiv has to alter the print styles and the whole DOM for printing. In case of complex websites and or a lot of print styles this might cause performance and/or styling issues. A possible solution could be the [htc-branch](https://github.com/aFarkas/html5shiv/tree/iepp-htc) of HTML5 Shiv, which uses another technique to implement print styles for IE8.
127+
- The printshiv version of HTML5 Shiv has to alter the print styles and the whole DOM for printing. In case of complex websites and or a lot of print styles this might cause performance and/or styling issues. A possible solution could be the [htc-branch](https://github.com/aFarkas/html5shiv/tree/iepp-htc) of HTML5 Shiv, which uses another technique to implement print styles for Internet Explorer 6-8.
128128

129129
### What about the other HTML5 element projects?
130130

0 commit comments

Comments
 (0)