File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -840,11 +840,14 @@ return (function () {
840840
841841 function attributeHash ( elt ) {
842842 var hash = 0 ;
843- for ( var i = 0 ; i < elt . attributes . length ; i ++ ) {
844- var attribute = elt . attributes [ i ] ;
845- if ( attribute . value ) { // only include attributes w/ actual values (empty is same as non-existent)
846- hash = stringHash ( attribute . name , hash ) ;
847- hash = stringHash ( attribute . value , hash ) ;
843+ // IE fix
844+ if ( elt . attributes ) {
845+ for ( var i = 0 ; i < elt . attributes . length ; i ++ ) {
846+ var attribute = elt . attributes [ i ] ;
847+ if ( attribute . value ) { // only include attributes w/ actual values (empty is same as non-existent)
848+ hash = stringHash ( attribute . name , hash ) ;
849+ hash = stringHash ( attribute . value , hash ) ;
850+ }
848851 }
849852 }
850853 return hash ;
Original file line number Diff line number Diff line change @@ -840,11 +840,14 @@ return (function () {
840840
841841 function attributeHash ( elt ) {
842842 var hash = 0 ;
843- for ( var i = 0 ; i < elt . attributes . length ; i ++ ) {
844- var attribute = elt . attributes [ i ] ;
845- if ( attribute . value ) { // only include attributes w/ actual values (empty is same as non-existent)
846- hash = stringHash ( attribute . name , hash ) ;
847- hash = stringHash ( attribute . value , hash ) ;
843+ // IE fix
844+ if ( elt . attributes ) {
845+ for ( var i = 0 ; i < elt . attributes . length ; i ++ ) {
846+ var attribute = elt . attributes [ i ] ;
847+ if ( attribute . value ) { // only include attributes w/ actual values (empty is same as non-existent)
848+ hash = stringHash ( attribute . name , hash ) ;
849+ hash = stringHash ( attribute . value , hash ) ;
850+ }
848851 }
849852 }
850853 return hash ;
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ The fastest way to get going with htmx is to load it via a CDN. You can simply a
113113and get going:
114114
115115``` html
116- <script src =" https://unpkg.com/htmx.org@1.8.5" integrity =" sha384-+xCWLDahFW6be8O9igDEVbaW3NVXG8daKz3Z0L5tr1iy3AJIxx3CWEcXCZhTICnW " crossorigin =" anonymous" ></script >
116+ <script src =" https://unpkg.com/htmx.org@1.8.5" integrity =" sha384-TODO " crossorigin =" anonymous" ></script >
117117```
118118
119119While the CDN approach is extremely simple, you may want to consider [ not using CDNs in production] ( https://blog.wesleyac.com/posts/why-not-javascript-cdn ) .
Original file line number Diff line number Diff line change @@ -840,11 +840,14 @@ return (function () {
840840
841841 function attributeHash ( elt ) {
842842 var hash = 0 ;
843- for ( var i = 0 ; i < elt . attributes . length ; i ++ ) {
844- var attribute = elt . attributes [ i ] ;
845- if ( attribute . value ) { // only include attributes w/ actual values (empty is same as non-existent)
846- hash = stringHash ( attribute . name , hash ) ;
847- hash = stringHash ( attribute . value , hash ) ;
843+ // IE fix
844+ if ( elt . attributes ) {
845+ for ( var i = 0 ; i < elt . attributes . length ; i ++ ) {
846+ var attribute = elt . attributes [ i ] ;
847+ if ( attribute . value ) { // only include attributes w/ actual values (empty is same as non-existent)
848+ hash = stringHash ( attribute . name , hash ) ;
849+ hash = stringHash ( attribute . value , hash ) ;
850+ }
848851 }
849852 }
850853 return hash ;
Original file line number Diff line number Diff line change @@ -840,11 +840,14 @@ return (function () {
840840
841841 function attributeHash ( elt ) {
842842 var hash = 0 ;
843- for ( var i = 0 ; i < elt . attributes . length ; i ++ ) {
844- var attribute = elt . attributes [ i ] ;
845- if ( attribute . value ) { // only include attributes w/ actual values (empty is same as non-existent)
846- hash = stringHash ( attribute . name , hash ) ;
847- hash = stringHash ( attribute . value , hash ) ;
843+ // IE fix
844+ if ( elt . attributes ) {
845+ for ( var i = 0 ; i < elt . attributes . length ; i ++ ) {
846+ var attribute = elt . attributes [ i ] ;
847+ if ( attribute . value ) { // only include attributes w/ actual values (empty is same as non-existent)
848+ hash = stringHash ( attribute . name , hash ) ;
849+ hash = stringHash ( attribute . value , hash ) ;
850+ }
848851 }
849852 }
850853 return hash ;
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments