aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src/xmerl_scan.erl
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2017-01-13 10:54:40 +0100
committerLars Thorsen <[email protected]>2017-01-13 10:54:40 +0100
commitee3f93aec3f2e8b49e0fa9a84ec4d68b687103c5 (patch)
tree8f4112808bb7ab65670b3e5bea52f9910959abdd /lib/xmerl/src/xmerl_scan.erl
parent82645ab6d5e25b999c4c1824c2d323c289d1e1a7 (diff)
parente4f93595aba76c2eda2d2efef175ea9d72ee5d29 (diff)
downloadotp-ee3f93aec3f2e8b49e0fa9a84ec4d68b687103c5.tar.gz
otp-ee3f93aec3f2e8b49e0fa9a84ec4d68b687103c5.tar.bz2
otp-ee3f93aec3f2e8b49e0fa9a84ec4d68b687103c5.zip
Merge branch 'maint'
Diffstat (limited to 'lib/xmerl/src/xmerl_scan.erl')
-rw-r--r--lib/xmerl/src/xmerl_scan.erl22
1 files changed, 12 insertions, 10 deletions
diff --git a/lib/xmerl/src/xmerl_scan.erl b/lib/xmerl/src/xmerl_scan.erl
index 5e0459ec21..9f6b27113e 100644
--- a/lib/xmerl/src/xmerl_scan.erl
+++ b/lib/xmerl/src/xmerl_scan.erl
@@ -2225,16 +2225,18 @@ processed_whole_element(S=#xmerl_scanner{hook_fun = _Hook,
AllAttrs =
case S#xmerl_scanner.default_attrs of
true ->
- [ #xmlAttribute{name = AttName,
- parents = [{Name, Pos} | Parents],
- language = Lang,
- nsinfo = NSI,
- namespace = Namespace,
- value = AttValue,
- normalized = true} ||
- {AttName, AttValue} <- get_default_attrs(S, Name),
- AttValue =/= no_value,
- not lists:keymember(AttName, #xmlAttribute.name, Attrs) ];
+ DefaultAttrs =
+ [ #xmlAttribute{name = AttName,
+ parents = [{Name, Pos} | Parents],
+ language = Lang,
+ nsinfo = NSI,
+ namespace = Namespace,
+ value = AttValue,
+ normalized = true} ||
+ {AttName, AttValue} <- get_default_attrs(S, Name),
+ AttValue =/= no_value,
+ not lists:keymember(AttName, #xmlAttribute.name, Attrs) ],
+ lists:append(Attrs, DefaultAttrs);
false ->
Attrs
end,