mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Added in-place mutation to DOMString.
The methods which are currently implemented are the ones on String that are currently being used: string.push_str(...), string.clear() and string.extend(...). We may want to revisit this API.
This commit is contained in:
parent
034769f280
commit
5db67b5981
5 changed files with 23 additions and 5 deletions
|
@ -182,7 +182,7 @@ fn follow_hyperlink(subject: &Element, hyperlink_suffix: Option<String>) {
|
|||
// Step 6.
|
||||
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=28925
|
||||
if let Some(suffix) = hyperlink_suffix {
|
||||
href.0.push_str(&suffix);
|
||||
href.push_str(&suffix);
|
||||
}
|
||||
|
||||
// Step 4-5.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue