mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
LibWeb: Implement "characterData" mutation record for MutationObserver
This commit is contained in:
parent
56cfd5ced8
commit
1ca8782c99
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,9 @@
|
|||
|
||||
#include <LibWeb/DOM/CharacterData.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/DOM/MutationType.h>
|
||||
#include <LibWeb/DOM/Range.h>
|
||||
#include <LibWeb/DOM/StaticNodeList.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
|
@ -59,7 +61,8 @@ ExceptionOr<void> CharacterData::replace_data(size_t offset, size_t count, Strin
|
|||
if (offset + count > length)
|
||||
count = length - offset;
|
||||
|
||||
// FIXME: 4. Queue a mutation record of "characterData" for node with null, null, node’s data, « », « », null, and null.
|
||||
// 4. Queue a mutation record of "characterData" for node with null, null, node’s data, « », « », null, and null.
|
||||
queue_mutation_record(MutationType::characterData, {}, {}, m_data, StaticNodeList::create({}), StaticNodeList::create({}), nullptr, nullptr);
|
||||
|
||||
// 5. Insert data into node’s data after offset code units.
|
||||
// 6. Let delete offset be offset + data’s length.
|
||||
|
|
Loading…
Add table
Reference in a new issue