Alexander Farkas

Results 176 comments of Alexander Farkas
trafficstars

@timdown This is really bad and we can not fix it. To get html5 elements dynamically created using innerHTML. The element has to be inside of a shived document or...

@Raynos It's all about innerHTML: ``` var elem = document.createElement('div'); elem.innerHTML = 'dsa'; document.body.appendChild(elem); ``` Currently this is the only known way to fix this. (+ Object.defineProperty only for IE8)....

@timdown I really understand you. Our [discussion](https://github.com/aFarkas/html5shiv/issues/21#issuecomment-3640294), to use an opt-out, instead of an opt-in. Beside those things, you really should use the createUnshivedElement function. Even if we use an...

@andrewnicols Thanks, I will look into this tomorrow.

While API could be indeed better, why don't you use the [elements-option](https://github.com/aFarkas/html5shiv#html5elements-option)?

I didn't said, that I won't add it. I just asked, because you said, that you are using a customized version instead of using the API to extend it.

In general can you re-try with this version: https://cdn.rawgit.com/aFarkas/html5shiv/40df868a76f1f19ea23b123d1480d44a7195f349/dist/html5shiv-printshiv.js

a start: ``` js //no dom position/order / no live nodelist, not even a true nodelist ['HTMLButtonElement', 'HTMLInputElement', 'HTMLMeterElement', 'HTMLOutputElement', 'HTMLKeygenElement', 'HTMLProgressElement', 'HTMLSelectElement', 'HTMLTextAreaElement'].forEach(function(element){ var slice = [].slice; if(window[element] &&...

It's part of webshim (5 year old project). Which used `$.attr` and `$.prop` as a save wrapper. Here is the [jQuery code](https://github.com/aFarkas/webshim/blob/gh-pages/src/shims/form-shim-extend2.js#L474-L496). 1. Due to the fact, that you have...

> I think we're able to avoid that and simplify the code by simply setting [for=$id] on the parental and have querySelectorAll() figure it out, no? No ;-). It does...