mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
8b7988e945
This patch ensures that the NODE_IS_EDITABLE flag is only set on nodes living under an editing host. Things like text controls which used to have that flag previously will not have it any more. The flag would be set on their anonymous div node instead. Note that if text controls actually fall under an editing host, they will get the NODE_IS_EDITABLE flag. This patch also makes nsHTMLEditor::IsEditable return sane results (text nodes are always considered to be editable).
25 lines
641 B
HTML
25 lines
641 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
:-moz-read-only + span {
|
|
display: none;
|
|
}
|
|
span {
|
|
color: transparent; /* workaround for bug 617524 */
|
|
outline: 1px solid green;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<input><span>hide me</span>
|
|
<input readonly><span>hide me</span>
|
|
<input type=password><span>hide me</span>
|
|
<input type=password readonly><span>hide me</span>
|
|
<input type=email><span>hide me</span>
|
|
<input type=email readonly><span>hide me</span>
|
|
<textarea></textarea><span>hide me</span>
|
|
<textarea readonly></textarea><span>hide me</span>
|
|
</body>
|
|
</html>
|