This time is the record for updating again the first issue on line number, because the team official think my solution is not good enough and provide other solution here.
The idea here is basically following the steps here:
- modify the parser in the
 components/script/dom/servoparser/html.rsand also need to modify thecomponents/script/dom/servoparser/mod.rswhere the enum in mod.rs should be code below inside the tokenizer, where the AsyncHtml and Xml are not implemented.fn get_current_line(&self) -> u32 { match *self { Tokenizer::Html(ref tokenizer) => tokenizer.get_current_line(), Tokenizer::AsyncHtml(_) => unimplemented!(), Tokenizer::Xml(_) => unimplemented!(), } }
- create a get function in 
components/script/dom/document.rspub(crate) fn get_current_parser_line(&self) -> Option<u32> { self.get_current_parser().map(|parser| parser.get_current_line()) }
- pass the line number from doc.get_parser_line_number() to the htmlelement and element in should_elements_inline_type_behavior_be_blocked()function in this filecomponents/script/dom/csp.rsHowever, only the eventtarget.rs has the line passed, other part use docpub(crate) fn set_event_handler_uncompiled( &self, url: ServoUrl, line: usize, ty: &str, source: &str, )
- Pass the line number to the csp and fix the error creating the source position and finally test with wpt
Let me try to follow the step here. Not sure whether the steps work for the dom.
Commit message
Based on the issue #38167 and PR #38304 description has following changes :
1. Update the servoparser html.rs get_current_line() function to obtain current_line from sink
2. Update mod.rs `get_parser_current_line()` to pass the parser line number to document
3. Add the line_number argument to `should_elements_inline_type_behavior_be_blocked` 
4. In components/script/dom, update element.rs and htmlstyleelement.rs with doc.get_current_parser_line and two other files with line_number attached using existing local values. 
Testing:
`./mach test-wpt content-security-policy/securitypolicyviolation/blockeduri-inline.html`
The line number correctly pass the value, the column number part is not implemented.
Please remember to sign-off in such case