From e52c6b84b5e35fe50e80df16826f2e7f17956403 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Fri, 21 Apr 2017 16:49:19 -0400 Subject: [PATCH] visit all attributes of select elements after visiting children --- .../dom/visitors/Element/Element.js | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/generators/dom/visitors/Element/Element.js b/src/generators/dom/visitors/Element/Element.js index c4bf6c6af4..bcbce6004a 100644 --- a/src/generators/dom/visitors/Element/Element.js +++ b/src/generators/dom/visitors/Element/Element.js @@ -56,20 +56,19 @@ export default function visitElement ( generator, block, state, node ) { block.builders.create.addLine( `${generator.helper( 'setAttribute' )}( ${name}, '${generator.cssId}', '' );` ); } - let selectValueAttribute; - - node.attributes - .sort( ( a, b ) => order[ a.type ] - order[ b.type ] ) - .forEach( attribute => { - // value attributes are an annoying special case — it must be handled + // *after* its children have been updated + visitAttributes(); + } // special case – bound