[latex]Mae govannen![/latex]
Wenn eine Liste, wo ständig dynamisch Einträge hinzugefügt und gelöscht werden, nun mal temporär keinen Eintrag enthält, wäre es unsinnig, das 'ul'-/'ol'-Element aus dem DOM zu entfernen, um kurz danach wieder eins zu erzeugen und ins DOM einzuhängen.
Aber das Einbinden/Entfernen der einzelnen Listenpunkte ist okay? Seltsame Einstellung. Zumal es ggf. ohnehin schneller geht (-> Rendering), die komplette Liste im Hintergrund zu erzeugen und einzuhängen als live n Elemente hinzuzufügen/entfernen
Und selbst wenn: Dann macht man das eben nicht, sondern blendet die einmal per JS erzeugte Liste halt über eine Änderung von className entsprechend ein/aus.
Alles immer noch besser als _nur deshalb_ HTML5 zu benutzen oder die Validität zu ignorieren.
Cü,
Kai
Douglas Crockford über HTML5: I think it is way too big. It has already declared itself as a standard, to the extent that they've criticized Microsoft for being incomplete in their implementation of that standard. It has not gone before W3C yet, it has not been approved by anybody, there has never been any kind of vote or any kind of approval, but they're just insisting that it is the inevitable winner [...] There's some good stuff in it, [...] just that there's good stuff is not justification for something that's that expansive. [...] there's a whole lot of it that I think is way wrong — and start over with something simpler, and try to find some principles which allow us to grow it, and make it more extensible in a way which does not burden us with so much complexity.
A workaround for an avoidable problem often adds clutter and overhead to the program which
could have been avoided by not creating the problem in the first place.(Garrett Smith/clj)
Foren-Stylesheet Site Selfzeug JS-Lookup
SelfCode: sh:( fo:| ch:? rl:( br:< n4:( ie:{ mo:| va:) js:| de:> zu:) fl:( ss:| ls:?