[339328] Wrong beginning replacement offset used when apply tag proposals in first child level of DOM Document
diff --git a/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/contentassist/LibraryTagsCompletionProposalComputer.java b/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/contentassist/LibraryTagsCompletionProposalComputer.java
index 3b97e3e..612ff3b 100644
--- a/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/contentassist/LibraryTagsCompletionProposalComputer.java
+++ b/bundles/org.eclipse.jst.jsp.ui/src/org/eclipse/jst/jsp/ui/internal/contentassist/LibraryTagsCompletionProposalComputer.java
@@ -332,7 +332,7 @@
 					String proposedText = getRequiredText(document, ed);
 					final IDOMNode targetNode = (IDOMNode) contentAssistRequest.getNode();
 					if (targetNode != null) {
-						final IStructuredDocumentRegion region = targetNode.getFirstStructuredDocumentRegion();
+						final IStructuredDocumentRegion region = targetNode.getLastStructuredDocumentRegion();
 						if (region != null && region.getFirstRegion() != null && region.getFirstRegion().getType().equals(DOMRegionContext.XML_TAG_OPEN) && proposedText.length() > 0) {
 							//in order to differentiate between content assist on 
 							//completely empty document and the one with xml open tag