|
|
|
нормализация дома
|
|||
|---|---|---|---|
|
#18+
Код: java 1. Подскажите пожалуйста что делает этот метод? авторTests whether the DOM implementation implements a specific feature and * that feature is supported by this node, as specified in . * @param feature The name of the feature to test. * @param version This is the version number of the feature to test. * @return Returns <code>true</code> if the specified feature is * supported on this node, <code>false</code> otherwise. * * @since DOM Level 2 не перевести нормально ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.01.2013, 15:36:29 |
|
||
|
нормализация дома
|
|||
|---|---|---|---|
|
#18+
У вас документация от метода hasFeature() public void normalize() Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form where only structure (e.g., elements, comments, processing instructions, CDATA sections, and entity references) separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes. This can be used to ensure that the DOM view of a document is the same as if it were saved and re-loaded, and is useful when operations (such as XPointer lookups) that depend on a particular document tree structure are to be used.In cases where the document contains CDATASections, the normalize operation alone may not be sufficient, since XPointers do not differentiate between Text nodes and CDATASection nodes. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.01.2013, 16:48:44 |
|
||
|
нормализация дома
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, И что значит? Помещает все текстовые узлы в полную глубину под дерево под этим узлом, в том числе узлы атрибутов, в "нормальной" форме, где только структуры.... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.01.2013, 20:58:13 |
|
||
|
нормализация дома
|
|||
|---|---|---|---|
|
#18+
Тут хорошо объяснили: http://stackoverflow.com/questions/2457955/what-does-java-node-normalize-method-do Приводит DOM в нормализованый вид, который может быть денормализован различными операциями с ним. В основном относится к текстовым нодам. Напрнескольо имер убирает пустые и склеивает несколько текстовых в одну. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.01.2013, 21:42:14 |
|
||
|
нормализация дома
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, А пример не приведёте? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.01.2013, 22:08:11 |
|
||
|
нормализация дома
|
|||
|---|---|---|---|
|
#18+
redwhite90А пример не приведёте? Ну, например в один Element можно добавить две текстовые ноды. Нормализация сделает из них одну. Либо в DOM можно добавить пустую текстовую ноду. Нормализация её уберет. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 26.01.2013, 22:17:08 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=38125725&tid=2130111]: |
0ms |
get settings: |
16ms |
get forum list: |
25ms |
check forum access: |
7ms |
check topic access: |
7ms |
track hit: |
55ms |
get topic data: |
21ms |
get forum data: |
5ms |
get page messages: |
74ms |
get tp. blocked users: |
3ms |
| others: | 318ms |
| total: | 531ms |

| 0 / 0 |
