Marko v3: Also store the raw, unparsed value of an attribute

This commit is contained in:
Patrick Steele-Idem 2016-02-11 14:58:35 -07:00
parent 98b52a3342
commit 3a841cd8df

View File

@ -106,6 +106,7 @@ class HtmlAttribute extends Node {
this.type = 'HtmlAttribute';
this.name = def.name;
this.value = def.value;
this.rawValue = def.rawValue;
this.escape = def.escape;
if (typeof this.value === 'string') {