-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix appendTitle, prependTitle. Update unit test for append, prepend and setTitle. #12236
Conversation
Update tests for prependTitle and appendTitle functions. For details: #12233 Update test for setTitle and getTitle: Make sure that getTitle(false) did not return <title> tag element
Hope i make it right now. Sorry for my mistakes :/ |
Unit tests look fine ... can we get can update though for the actual Tag implementation so this will pass? |
@virgofx i will try to make this changes too... |
Please review that changes. Thanks.
@butamuh4o As you can see tests fails |
Try to figure out where is syntax error
@sergeyklay I want to ask you to help me with something about a change i was trying to do. Can u check that and give me some details where and what is wrong with syntax? Thank you!!!
I want to give some freedom about prepend and append title functions. Maybe it is clear what i want to make: a way to clear prependTitle/appendTitle instead of clear all title elements. Update: yes, i found my mistake! its that typeof. So stupid. Thanks |
Last try to improve prependTitle. Hope i make it now.
I think now its better.
let prepend = self::_documentPrependTitle ; | ||
} | ||
|
||
if typeof title == "array" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new feature request?
let prepend = null ; | ||
} | ||
|
||
let self::_documentPrependTitle = prepend ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So now _documentPrependTitle
is array or null and this breaking BC
No it is not change request. Just think it is better to have that option. Will revert that idea. Sorry |
It is good idea, but for 3.1.x not for 3.0.x |
@butamuh4o Also could you update CHANGELOG.md? |
So i will make a clear pull request and update changelog. Just to get to the office. Thank you! PS: sorry for that i closed this pull, my phone did that. |
Update tests for prependTitle and appendTitle functions.
For details: #12233
Update test for setTitle and getTitle: Make sure that getTitle(false) did not return <title> tag element