mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 09:01:16 +00:00
765e91b497
Editor creates a `<br>` element when it's root element is empty. Then, it's stored by `TextEditRules::mBogusNode` and used for checking whether the editor is empty quickly. However, this `<br>` element has `mozeditorbogusnode` attribute whose value is `true`. However, adding or removing the attribute is not cheap and web apps can refer such illegal attribute. Therefore, this patch makes `HTMLBRElement` take a specific flag whether it's a bogus node or not. However, this means that this hacky thing will be exposed outside editor module. For making what is the bogus node clearer, this patch calls the such `<br>` elements as "padding `<br>` element for empty editor". So, this patch also includes a lot of renaming methods and variables, and modifying related comments. Differential Revision: https://phabricator.services.mozilla.com/D39857 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |